共用方式為


SPContext.Item Property

Gets either the SPListItem object that is determined by the given list and item ID, or the SPItem object that is set when the SPContext object is created.

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

Syntax

Public ReadOnly Property Item As SPItem
    Get

Dim instance As SPContext
Dim value As SPItem

value = instance.Item
public SPItem Item { get; }

Property Value

Type: Microsoft.SharePoint.SPItem
An SPItem object that represents the item.

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace