共用方式為


SPContext.Item property

取得由指定的清單和項目 ID 的SPListItem物件,或者是SPContext物件建立時設定的SPItem物件。

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
SPItem 物件,表示項目。

請參閱

參照

SPContext class

SPContext members

Microsoft.SharePoint namespace