SPFile.ParentFolder Property

Gets the parent folder of the file.

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

public SPFolder ParentFolder { get; }

Property Value

Type: Microsoft.SharePoint.SPFolder
An SPFolder object that represents the parent folder.
Show: