Share via


SPWebPartCollection.Web property

NOTE: This API is now obsolete.

Obsolete. Gets the parent Web site of the collection.

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public ReadOnly Property Web As SPWeb
    Get
'Usage
Dim instance As SPWebPartCollection
Dim value As SPWeb

value = instance.Web
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public SPWeb Web { get; }

Property value

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

See also

Reference

SPWebPartCollection class

SPWebPartCollection members

Microsoft.SharePoint namespace