SPWebEventProperties.ParentWebId property

Gets the unique identifier of parent Web. This property is only valid when used with the WebAdding(SPWebEventProperties) event. To get the ID for the After event, WebProvisioned(SPWebEventProperties), use the WebId property.

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

Syntax

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

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

Property value

Type: System.Guid
Returns Guid.

See also

Reference

SPWebEventProperties class

SPWebEventProperties members

Microsoft.SharePoint namespace