共用方式為


SPEventReceiverDefinition.ParentHostType property

取得或設定裝載 (host) 事件的物件的父物件的物件類型。

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

Syntax

'宣告
Public Property ParentHostType As SPEventHostType
    Get
    Set
'用途
Dim instance As SPEventReceiverDefinition
Dim value As SPEventHostType

value = instance.ParentHostType

instance.ParentHostType = value
public SPEventHostType ParentHostType { get; set; }

Property value

Type: Microsoft.SharePoint.SPEventHostType
SPEventHostType 值,指出物件型別。

備註

內容類型、 功能、 清單和清單項目、 網站、 web 和工作流程都可以有SharePoint Foundation站台內的父物件提供事件主應用程式的功能,因為其階層式的位置。

請參閱

參照

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

SPWorkflowManager

其他資源

事件主控件類型