PublishingWeb class

SharePoint Online

Provides publishing behavior for a Web instance that supports publishing.


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

public sealed class PublishingWeb : ClientObject

The PublishingWeb class provides publishing-specific behavior for a Web that supports publishing, including access to child PublishingPage and PublishingWeb instances, variations support, navigation settings, PageLayout and Web template restrictions, and Welcome page settings. This class wraps a Web instance that has the publishing feature activated.

Instantiate this class by using the static GetPublishingWeb(ClientRuntimeContext, Web) method or by retrieving it from a PublishingWebCollection collection.

The PublishingWeb class wraps the Web class. It also directly exposes the underlying Web through the Web property so that additional Web functionality can be easily accessed.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.