Share via


SPEventReceiverDefinition.HostId Property

Gets or sets the Guid (Globally Unique Identifier) of the object that is hosting the event.

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

Syntax

Public Property HostId As Guid
    Get
    Set

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 represents the identifier for 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