Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

[ClientCallableAttribute]
public SPWebCollection Webs { get; }

Property Value

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

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

Show:
© 2015 Microsoft