SPListItem.Folder property

Gets a folder object that is associated with a folder item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public ReadOnly Property Folder As SPFolder
Dim instance As SPListItem
Dim value As SPFolder

value = instance.Folder
public SPFolder Folder { get; }

Property value

Type: Microsoft.SharePoint.SPFolder
An SPFolder object that represents the folder if the item is a folder; otherwise a null reference (Nothing in Visual Basic).

See also


SPListItem class

SPListItem members

Microsoft.SharePoint namespace