ArcGIS Pro 2.6 API Reference Guide
FolderConnectionProjectItem Class
Members  Example 

ArcGIS.Desktop.Catalog Namespace : FolderConnectionProjectItem Class
Represents a folder connection project item
Object Model
FolderConnectionProjectItem ClassItem ClassTimeInstant Class
Syntax
public sealed class FolderConnectionProjectItem : ArcGIS.Desktop.Internal.Catalog.ProjectItemInfoCrawl, ArcGIS.Desktop.Core.IMetadata, ArcGIS.Desktop.Core.IProjectItem, ArcGIS.Desktop.Core.ISearchableItem, System.ComponentModel.INotifyPropertyChanged  
Public NotInheritable Class FolderConnectionProjectItem 
   Inherits ArcGIS.Desktop.Internal.Catalog.ProjectItemInfoCrawl
   Implements ArcGIS.Desktop.Core.IMetadata, ArcGIS.Desktop.Core.IProjectItem, ArcGIS.Desktop.Core.ISearchableItem, System.ComponentModel.INotifyPropertyChanged 
Remarks

A folder connection project item is a folder that has been added to the current project. The folder connection is a project item. The sub-folders and other items that can be accessed using the folder connection are items, not project items.

Example
/// Get all the folder connections in a project
IEnumerable<FolderConnectionProjectItem> projectFolders = Project.Current.GetItems<FolderConnectionProjectItem>();
/// Remove a folder connection from a project; the folder stored on the local disk 
/// or the network is not deleted
FolderConnectionProjectItem folderToRemove = Project.Current.GetItems<FolderConnectionProjectItem>().FirstOrDefault(folder => folder.Name.Equals("PlantSpecies"));
if (folderToRemove != null)
  Project.Current.RemoveItem(folderToRemove as IProjectItem);
Inheritance Hierarchy

System.Object
   ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase
      ArcGIS.Desktop.Core.Item
                  ArcGIS.Desktop.Catalog.FolderConnectionProjectItem

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

FolderConnectionProjectItem Members
ArcGIS.Desktop.Catalog Namespace