SPWeb.ParentWebId Property

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

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 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