다음을 통해 공유


PublishingWeb.SetDefaultPageLayout Method

Specifies the URL token that will be used when creating “one-click” pages within the current PublishingWeb object.

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

Syntax

'Declaration
Public Sub SetDefaultPageLayout ( _
    pageLayout As PageLayout, _
    resetAllSubsitesToInherit As Boolean _
)
'Usage
Dim instance As PublishingWeb
Dim pageLayout As PageLayout
Dim resetAllSubsitesToInherit As Boolean

instance.SetDefaultPageLayout(pageLayout, _
    resetAllSubsitesToInherit)
public void SetDefaultPageLayout(
    PageLayout pageLayout,
    bool resetAllSubsitesToInherit
)

Parameters

  • resetAllSubsitesToInherit
    Type: System.Boolean

    Indicates whether this setting should be pushed down to all subsites

Remarks

After calling this method, the NewPageUrlToken will return the given page layout and the given URL token. The IsInheritingNewPageUrlToken property will be False.

See Also

Reference

PublishingWeb Class

PublishingWeb Members

Microsoft.SharePoint.Publishing Namespace