Partilhar via


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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