共用方式為


SPEventReceiverDefinition.ContextId property

取得或設定Guid (全域唯一識別碼) 的事件接收器定義的內容。

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

Syntax

'宣告
Public Property ContextId As Guid
    Get
    Set
'用途
Dim instance As SPEventReceiverDefinition
Dim value As Guid

value = instance.ContextId

instance.ContextId = value
public Guid ContextId { get; set; }

Property value

Type: System.Guid
Guid ,表示SharePoint Foundation內容相關聯的項目識別項。

備註

內容是描述執行環境屬性或屬性集合。內容,通常實作為一系列的名稱 / 值組,提供有關元件,如它所在的容器的資訊。內容提供功能,藉由建立此內容集合內物件的事件處理常式,並開發程式碼來處理這些事件。

請參閱

參照

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

SPContext