SPListItem.Folder Property (Microsoft.SharePoint)
Gets a folder object that is associated with a folder item.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public ReadOnly Property Folder As SPFolder
Visual Basic (Usage)
Dim instance As SPListItem
Dim value As SPFolder

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

Property Value

An SPFolder object that represents the folder if the item is a folder; otherwise null.
See Also

Tags :


Page view tracker