Partilhar via


SPEventReceiverDefinition.WebId Property

Gets the ID of the site in which the event receiver is registered.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property WebId As Guid
    Get
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As Guid

value = instance.WebId
public Guid WebId { get; }

Property Value

Type: System.Guid
A GUID that identifies the site.

See Also

Reference

SPEventReceiverDefinition Class

SPEventReceiverDefinition Members

Microsoft.SharePoint Namespace

Other Resources

Event Receivers Result Set