SPWeb.ParentWebId property

Gets the identifier (ID) of the parent website for the site.

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

Syntax

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

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

Property value

Type: System.Guid
A GUID that identifies the parent website.

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace