共用方式為


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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property File As SPFile
    Get
'Usage
Dim instance As SPContext
Dim value As SPFile

value = instance.File
public SPFile File { get; }

Property Value

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

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace