共用方式為


SPEventReceiverDefinitionCollection.HostType property

取得事件接收器定義套用的物件型別。

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

Syntax

'宣告
Public ReadOnly Property HostType As SPEventHostType
    Get
'用途
Dim instance As SPEventReceiverDefinitionCollection
Dim value As SPEventHostType

value = instance.HostType
public SPEventHostType HostType { get; }

Property value

Type: Microsoft.SharePoint.SPEventHostType
SPEventHostType 值,這個值指定為此事件接收器的事件主應用程式的物件型別。

備註

事件主機是一個物件,像是SPSite物件或SPWorkflow事件的物件,該處理程序所產生的使用者動作。

請參閱

參照

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Microsoft.SharePoint namespace

SPEventReceiverType