SPWebEventProperties.WebId property

Gets the ID of the Web site for which the event occurred.

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

Syntax

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

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

Property value

Type: System.Guid
Returns a Guid GUID that identifies the Web site.

Remarks

This property is only useful with After events. To reference a Web for Before events, use the ParentWebId property.

See also

Reference

SPWebEventProperties class

SPWebEventProperties members

Microsoft.SharePoint namespace