SPFile.SourceFile Property

Gets the parent file object of the file that was created through document transforms.

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

public SPFile SourceFile { get; }

Property Value

Type: Microsoft.SharePoint.SPFile
An SPFile object that represents the parent file object, or a null reference (Nothing in Visual Basic) if the file was not created through document transforms.
Show: