共用方式為


SPItemEventProperties.ListItemId property

取得與事件相關聯的清單項目 ID。

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

Syntax

'宣告
Public ReadOnly Property ListItemId As Integer
    Get
'用途
Dim instance As SPItemEventProperties
Dim value As Integer

value = instance.ListItemId
public int ListItemId { get; }

Property value

Type: System.Int32
識別清單項目為 32 位元整數。

備註

請注意這個屬性會傳回無效的資料,以及非項目 ID 的資料夾中,如果您使用SPFolderCollection類別的Add方法來將資料夾加入至清單。

請參閱

參照

SPItemEventProperties class

SPItemEventProperties members

Microsoft.SharePoint namespace