SPFolderHierarchy members
This class is an abstraction over the folders in a SharePoint Server list designed to work around limitations in the SharePoint Server object model around iterating the folders in a large list.
The SPFolderHierarchy type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SPFolderHierarchy(SPList) | Initializes a new instance of a SPFolderHierarchy object | |
SPFolderHierarchy(SPList, Boolean) | Initializes a new instance of a collection of all folders in the list. | |
SPFolderHierarchy(SPList, String, Boolean) | Initializes a new instance of a SPFolderHierarchy object. | |
SPFolderHierarchy(SPList, Boolean, String, Boolean) | Initializes a new instance of a collection of all folders in the list. |
Top
Properties
Name | Description | |
---|---|---|
Count | Count Gets the number of folders in this hierarchy. | |
FolderUrl | FolderUrl The url of the folder corresponding to this hierarchy of folders. | |
IncludeDocsets | Gets whether the hierarchy of folders includes document sets. | |
Item | Gets a folder by server-relative url. | |
List | List Gets the list corresponding to this hierarchy of folders. | |
ParentHierarchy | ParentHierarchy Gets the hierarchy of folders for the parent of this hierarchy. | |
RootHierarchy | RootHierarchy Gets the hierarchy of folders for the root of this hierarchy. | |
ThrottledMode | Gets whether the folder hierarchy is in throttled mode. |
Top
Methods
Name | Description | |
---|---|---|
GetEnumerator | Get enumerator. | |
GetFolderSubFolderCount | Gets the count of subfolders for the specified SPFolder object. | |
GetSiteCollectionResourceFolder | Gets a folder for storing resources for a site collection. | |
GetSubFolder | Gets the direct subfolder by name. | |
GetSubFolders(String) | Gets the subfolder of the folder indicated by the URL. | |
GetSubFolders(String, Boolean) | Gets the subfolders of a folder indicated by the URL. | |
ListHasFolders | Checks whether the list has folders. | |
TryGetFolder | TryGetFolder Gets a folder by url, or null if the folder doesn't exist. | |
TryGetFolderByUrl(SPWeb, String, SPFolder) | TryGetFolderByUrl Gets a folder by the server-relative url. | |
TryGetFolderByUrl(SPWeb, String, Boolean, SPFolder) | TryGetFolderByUrl Gets a folder by the server-relative url. | |
TryGetFolderItem | TryGetFolderItem Gets a folder by url, or null if the folder doesn't exist. |
Top