共用方式為


SPFile.ListItemAllFields Property

Gets the SPListItem object that corresponds to this file, including all its field values, if the file belongs to a document library.

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

Syntax

'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property ListItemAllFields As SPListItem
    Get
'Usage
Dim instance As SPFile
Dim value As SPListItem

value = instance.ListItemAllFields
[ClientCallableAttribute]
public SPListItem ListItemAllFields { get; }

Property Value

Type: Microsoft.SharePoint.SPListItem
SPListItem
The list item that corresponds to the file.

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace