共用方式為


SPEventReceiverDefinition.ParentHostId property

取得或設定裝載事件物件的父物件的 ID。

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

Syntax

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

value = instance.ParentHostId

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

Property value

Type: System.Guid
識別裝載物件的父物件的 GUID。

備註

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

請參閱

參照

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

ParentWeb

ParentId

HostId