Share via


SPWeb.Webs property

Gets a website collection object that represents all websites immediately beneath the website, excluding children of those websites.

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

Syntax

'Declaration
Public ReadOnly Property Webs As SPWebCollection
    Get
'Usage
Dim instance As SPWeb
Dim value As SPWebCollection

value = instance.Webs
public SPWebCollection Webs { get; }

Property value

Type: Microsoft.SharePoint.SPWebCollection
A collection of SPWeb objects that represent child websites.

Remarks

Use the AllWebs property of the SPSite class to return all the websites within a site collection.

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace