Share via


PublishingSite Members

Include Protected Members
Include Inherited Members

Provides publishing behavior for an SPSite object that supports publishing.

The PublishingSite type exposes the following members.

Constructors

  Name Description
Public method PublishingSite Constructs an instance of a PublishingSite object that wraps the given SPSite object.

Top

Properties

  Name Description
Public property ContentTypes Gets the collection of SPContentType objects from the RootWeb property.
Public property PageLayouts Gets a collection of non-obsolete PageLayout objects from the Master Page Gallery of the RootWeb property.
Public property RootWeb Gets the root SPWeb of this PublishingSite object.
Public property Site Retrieves the SPSite object that is wrapped by this PublishingSite instance.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetPageLayouts(Boolean) Gets a collection of PageLayout objects from the Master Page Gallery of the RootWeb() property.
Public method GetPageLayouts(SPContentType, Boolean) Gets a collection of PageLayout objects from the Master Page Gallery of the RootWeb() property that has a AssociatedContentType property that matches a specific SPContentType object.
Public method GetType (Inherited from Object.)
Public methodStatic member IsPublishingSite Checks the SPSite object to determine whether it is also a PublishingSite object.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

See Also

Reference

PublishingSite Class

Microsoft.SharePoint.Publishing Namespace