次の方法で共有


SPEventReceiverDefinition.HostId property

Gets or sets the identifier of the object that is hosting the event.

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

Syntax

'Declaration
Public Property HostId As Guid
    Get
    Set
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As Guid

value = instance.HostId

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

Property value

Type: System.Guid
A GUID that identifies the hosting object.

Remarks

A hosting object has Event Registrations objects associated with it so the event senders are aware of where the events will be processed.

See also

Reference

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

Other resources

Event Host Type

ID Element