Partilhar via


SPFolder.SubFolders Property

Gets the collection of subfolders contained within the folder.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute(Name := "Folders")> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
Public ReadOnly Property SubFolders As SPFolderCollection
    Get
'Usage
Dim instance As SPFolder
Dim value As SPFolderCollection

value = instance.SubFolders
[ClientCallableAttribute(Name = "Folders")]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
public SPFolderCollection SubFolders { get; }

Property Value

Type: Microsoft.SharePoint.SPFolderCollection
An SPFolderCollection object that represents the subfolders.

See Also

Reference

SPFolder Class

SPFolder Members

Microsoft.SharePoint Namespace