Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
File property

SPContext.File property

Gets the file that is associated with the list item object of the given Microsoft SharePoint Foundation context.

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

public SPFile File { get; }

Property value

Type: Microsoft.SharePoint.SPFile
An SPFile object that represents the file.
Show:
© 2015 Microsoft