共用方式為


SPEventReceiverDefinition.Type property

取得或設定事件的型別為事件接收器。

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

Syntax

'宣告
Public Property Type As SPEventReceiverType
    Get
    Set
'用途
Dim instance As SPEventReceiverDefinition
Dim value As SPEventReceiverType

value = instance.Type

instance.Type = value
public SPEventReceiverType Type { get; set; }

Property value

Type: Microsoft.SharePoint.SPEventReceiverType
SPEventReceiverType 值,表示事件的型別。

備註

使用者執行動作,例如刪除、 更新、 簽入,或轉換的Microsoft SharePoint Foundation物件。當SharePoint Foundation物件具有由使用者在其上執行某些動作時,物件就會產生事件。指定動作的發生此事件必須由適當的事件內的主機進行處理的SharePoint Foundation陣列接收。

請參閱

參照

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

SPContext

SPField

SPFile