ParentWeb Property
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

SPWeb.ParentWeb Property

Windows SharePoint Services 3

Gets the parent Web site of the specified Web site.

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

public SPWeb ParentWeb { get; }

Property Value

Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the parent Web site.
© 2015 Microsoft