SPEventReceiverDefinition.HostType property
取得或設定裝載 (host) 事件的物件型別。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property HostType As SPEventHostType
Get
Set
'用途
Dim instance As SPEventReceiverDefinition
Dim value As SPEventHostType
value = instance.HostType
instance.HostType = value
public SPEventHostType HostType { get; set; }
Property value
Type: Microsoft.SharePoint.SPEventHostType
SPEventHostType 值,指定物件的型別。
備註
使用者執行動作,例如刪除、 更新、 簽入,或轉換的Microsoft SharePoint Foundation物件。當SharePoint Foundation物件具有由使用者在其上執行某些動作時,物件就會產生事件。指定動作發生的事件必須由站台所指定的事件主機接收。內容類型、 功能、 清單和清單項目、 網站、 web 和工作流程是所有類型的事件主控件。
請參閱
參照
SPEventReceiverDefinition class
SPEventReceiverDefinition members
Microsoft.SharePoint namespace
其他資源
事件主控件類型
事件接收器類型