Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class PublishingWebCollection _
Inherits CollectionBase
'Usage
Dim instance As PublishingWebCollection
[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.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in