SPWeb Properties


SPWeb.ParentWeb Property (Microsoft.SharePoint)
Gets the parent Web site of the specified Web site.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public ReadOnly Property ParentWeb As SPWeb
Visual Basic (Usage)
Dim instance As SPWeb
Dim value As SPWeb

value = instance.ParentWeb
C#
public SPWeb ParentWeb { get; }

Property Value

An SPWeb object that represents the parent Web site.
See Also

Tags :


Page view tracker