SPEventReceiverDefinition.ContextObjectId property
取得或設定 (與 ContextType 相關聯) 的Guid內容物件。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property ContextObjectId As Guid
Get
Set
'用途
Dim instance As SPEventReceiverDefinition
Dim value As Guid
value = instance.ContextObjectId
instance.ContextObjectId = value
public Guid ContextObjectId { get; set; }
Property value
Type: System.Guid
Guid ,表示用來存取內容物件的識別項。
備註
這是實際的SPListItem物件,但這個屬性只能用來設定內容對應。例如,建立資料行動作可以擷取由不同於建立檢視動作中,id id 雖然兩者設定內容中都。
請參閱
參照
SPEventReceiverDefinition class
SPEventReceiverDefinition members