Share via


PublishingWeb Members

Include Protected Members
Include Inherited Members

The PublishingWeb class provides publishing behavior for an SPWeb instance that supports publishing. This class cannot be inherited.

The PublishingWeb type exposes the following members.

Properties

  Name Description
Public property AlternateCssUrl Gets the URL that points to the alternate Cascading Style Sheet (CSS) file for this PublishingWeb object.
Public property AnonymousPageCacheProfileId Gets or sets the ID of the ASP.NET output cache profile for this PublishingWeb object.
Public property Audience Gets or sets a string representing the audience whom this PublishingWeb targets.
Public property AuthenticatedPageCacheProfileId Gets or sets the ID of the authenticated page output cache profile for this PublishingWeb object.
Public property CreatedBy Gets the SPUser who created this PublishingWeb object.
Public property CreatedDate Gets the date and time that this PublishingWeb was created.
Public property CurrentNavigationNodes Collection of SPNavigation nodes in the current SPNavigationNodeCollection object.
Public property CustomMasterUrl Gets the custom master URL for this PublishingWeb object.
Public propertyStatic member DefaultDefaultPageName Gets the default URL name for the Welcome page for this PublishingWeb object.
Public property DefaultPage Gets and sets the Welcome page for this PublishingWeb object.
Public propertyStatic member DefaultPagesListName Gets the default URL name that is used for the pages list in the existing locale for this PublishingWeb object.
Public property Description Gets or sets the description string for this PublishingWeb object.
Public property GlobalNavigationNodes A collection of SPNavigationNode objects included in global navigation.
Public property IncludeInCurrentNavigation Controls whether this Web site is included by PortalSiteMapProvider objects that have NavigationType set to "Current".
Public property IncludeInGlobalNavigation Controls whether this Web site is included by PortalSiteMapProvider objects that have NavigationType set to "Global".
Public property IncludePagesInNavigation Determines whether to automatically include pages in navigation.
Public property IncludeSubSitesInNavigation Determines whether to automatically include subsites, or any type of SPWeb object, in navigation.
Public property InheritCurrentNavigation Gets or sets whether the PublishingWeb object inherits the current navigation behavior.
Public property InheritGlobalNavigation Controls whether this PublishingWeb object should display its own global navigation or should use the global navigation of its parent.
Public property IsAllowingAllPageLayouts Gets a Boolean value that indicates whether the available PageLayout objects that are returned by the GetAvailablePageLayouts method are the complete set of page layouts.
Public property IsAllowingAllWebTemplates Gets a Boolean value that indicates whether the available Web templates that are returned by the GetAvailableWebTemplates() method are the complete set.
Public property IsInheritingAvailablePageLayouts Gets a Boolean value that indicates whether the available PageLayout objects that are returned by the GetAvailablePageLayoutsmethod are inherited from the parent PublishingWeb() object.
Public property IsInheritingAvailableWebTemplates Gets a Boolean value that indicates whether the available Web templates that are returned by the GetAvailableWebTemplates() method are inherited from the parent PublishingWeb.
Public property IsRoot Gets a Boolean value that determines whether this PublishingWeb object is the root SPWeb object.
Public property Label Gets the VariationLabel object in whose hierarchy this PublishingWeb object is situated.
Public property LastModifiedDate Gets the date and time that an item in this PublishingWeb object was last modified.
Public property MasterUrl Gets the master URL for this PublishingWeb object.
Public property Name Gets or sets the URL name of this PublishingWeb object.
Public property NavigationAutomaticSortingMethod Controls the property to use when automatically sorting navigation items owned by this PublishingWeb object.
Public property NavigationOrderingMethod Controls the ordering of navigation items owned by this PublishingWeb object.
Public property NavigationShowSiblings Controls whether this Web site should display siblings of the current Web site in current navigation.
Public property NavigationSortAscending Gets or sets a Boolean value that indicates whether navigation of this PublishingWeb object is sorted in ascending or descending order.
Public property PagesList Gets the pages list in which PublishingPage objects are stored for this PublishingWeb object.
Public property PagesListId Gets or sets the ID of the pages list in which the PublishingPage objects are stored for this PublishingWebobject.
Public property PagesListName Gets or sets the URL name of the pages list in which PublishingPage objects are stored for this PublishingWebobject.
Public property ParentPublishingWeb Gets the parent SPWeb object as a PublishingWebinstance.
Public property Title Gets or sets the title of the PublishingWeb object.
Public property Uri Gets the URI of this PublishingWeb object.
Public property Url Gets the URL for this PublishingWeb object.
Public property VariationPublishingWebUrls Gets a collection of URLs of the variant publishing Webs associated with this PublishingWeb object
Public property Web Gets the SPWeb object that is wrapped by this PublishingWeb instance.

Top

Methods

  Name Description
Public method AllowAllPageLayouts Resets the available PageLayoutobjects on this PublishingWeb to the complete set of layouts.
Public method AllowAllWebTemplates Resets the available Web templates on this PublishingWeb object to the complete set of Web templates.
Public method Close Closes the wrapped SPWeb object if it was instantiated internally.
Public method Delete() Deletes the current PublishingWeb object.
Public method Delete(Boolean) Deletes the current PublishingWeb instance and potentially all sites in the subtree with a node in this PublishingWeb.
Public method Equals (Inherited from Object.)
Public method ExcludeFromNavigation Explicitly excludes a subsite or page from navigation.
Protected method Finalize (Inherited from Object.)
Public method GetAvailableCrossLanguageWebTemplates Returns the cross-language Web templates available for creating subsites below this PublishingWeb.
Public method GetAvailablePageLayouts() Returns the PageLayout objects available for creating PublishingPage objects within this PublishingWeb.
Public method GetAvailablePageLayouts(SPContentTypeId) Returns the PageLayout objects available for creating PublishingPage objects within this PublishingWeb object, filtered by an associated SPContentTypeId object.
Public method GetAvailableWebTemplates Returns the Web templates available for creating subsites below this PublishingWeb.
Public method GetHashCode (Inherited from Object.)
Public methodStatic member GetPagesListId The ID of the pages list in which PublishingPage objects are stored for this PublishingWeb object.
Public methodStatic member GetPagesListName The URL name of the pages list in which PublishingPage objects are stored for this PublishingWeb.
Public method GetPublishingPages() Gets a collection of PublishingPage objects contained in this PublishingWeb object.
Public method GetPublishingPages(SPQuery) Gets a collection of PublishingPage objects contained in this PublishingWeb object.
Public method GetPublishingPages(String) Gets a collection of PublishingPage objects contained in this PublishingWeb object.
Public method GetPublishingPages(UInt32) Gets a collection of PublishingPage objects contained in this PublishingWeb object.
Public method GetPublishingPages(String, UInt32) Gets a collection of PublishingPage objects that are contained in this PublishingWeb object.
Public methodStatic member GetPublishingWeb Static method to retrieve an instance of the PublishingWeb that wraps the specified SPWeb object.
Public method GetPublishingWebs Returns child PublishingWeb objects immediately below this PublishingWeb object.
Public method GetType (Inherited from Object.)
Public method GetVariation Get the peer Variation Publishing Web of this PublishingWeb object for the given varlabel.
Public method GetVariationUrlFromSourceUrl Returns the current Variation URL for the current PublishingWeb object for a specific source PublishingWeb location.
Public method IncludeInNavigation Explicitly includes a subsite or a page in navigation.
Public method InheritAvailablePageLayouts Sets the PageLayouts available on this PublishingWeb object to be inherited from the parent PublishingWeb object.
Public method InheritAvailableWebTemplates Available Web templates that are associated with this PublishingWeb object and that are inherited from the parent PublishingWeb class.
Public methodStatic member IsPublishingWeb Checks the SPWeb object to verify whether it is a PublishingWeb object.
Protected method MemberwiseClone (Inherited from Object.)
Public method SetAvailableCrossLanguageWebTemplates Specifies the cross-language Web templates that are available for creating subsites below this PublishingWeb object.
Public method SetAvailablePageLayouts Specifies PageLayout objects that are available for use in creating PublishingPage objects within this PublishingWeb object.
Public method SetAvailableWebTemplates Specifies the Web templates that are available for creating subsites below this PublishingWeb object for a specific locale
Public method ToString (Inherited from Object.)
Public method Update Saves changes to this PublishingWeb object.

Top

See Also

Reference

PublishingWeb Class

Microsoft.SharePoint.Publishing Namespace