Export (0) Print
Expand All
Expand Minimize
0 out of 2 rated this helpful - Rate this topic

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)
[ClientCallableAttribute(ClientLibraryTargets = ClientLibraryTargets.NonRESTful)]
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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.