다음을 통해 공유


PublishingWeb.AddPublishingPage Method (String, PageLayout)

Creates a new PublishingPage object in the PublishingWeb.

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

Syntax

'Declaration
Public Function AddPublishingPage ( _
    name As String, _
    layout As PageLayout _
) As PublishingPage
'Usage
Dim instance As PublishingWeb
Dim name As String
Dim layout As PageLayout
Dim returnValue As PublishingPage

returnValue = instance.AddPublishingPage(name, _
    layout)
public PublishingPage AddPublishingPage(
    string name,
    PageLayout layout
)

Parameters

  • name
    Type: System.String

    The name of the new PublishingPage object.

Return Value

Type: Microsoft.SharePoint.Publishing.PublishingPage
Returns PublishingPage.

See Also

Reference

PublishingWeb Class

PublishingWeb Members

AddPublishingPage Overload

Microsoft.SharePoint.Publishing Namespace