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