Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PublishingWebCollection class

Represents a collection of PublishingWeb objects.

System.Object
  Microsoft.SharePoint.Publishing.CollectionBase
    Microsoft.SharePoint.Publishing.PublishingWebCollection

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class PublishingWebCollection : CollectionBase

This collection provides integer and string indexer methods, foreach enumeration support (For Each in Microsoft Visual Basic), and a Count property that can be used when explicitly iterating the collection.

This collection also supports creating new PublishingWeb instances using the

Add method.

The PublishingWebCollection object wraps a Windows SharePoint Services SPWebCollection object.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.