共用方式為


SPEventReceiverDefinition.ContextEventType property

取得或設定與此內容事件相關聯的接收者處理序的Guid (全域唯一識別項)。

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

Syntax

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

value = instance.ContextEventType

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

Property value

Type: System.Guid
Guid 表示內容事件的型別物件的識別項。

備註

使用者活動產生事件所定義的事件接收器物件及事件主應用程式相關聯。例如,如果使用者在檢視中的清單中加入項目,然後用的事件接收器物件就會是處理檢視內容的Add()事件的一個。

請參閱

參照

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

SPContext

SPEventReceiverType

其他資源

事件主控件類型