Share via


PublishingPage.GetPublishingPage method

Gets a PublishingPage object instance that wraps the given ListItem object.

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

Syntax

'Declaration
Public Shared Function GetPublishingPage ( _
    context As ClientRuntimeContext, _
    sourceListItem As ListItem _
) As PublishingPage
'Usage
Dim context As ClientRuntimeContext
Dim sourceListItem As ListItem
Dim returnValue As PublishingPage

returnValue = PublishingPage.GetPublishingPage(context, _
    sourceListItem)
public static PublishingPage GetPublishingPage(
    ClientRuntimeContext context,
    ListItem sourceListItem
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.Publishing.PublishingPage
A PublishingPage instance that wraps the given SPListItem.

Remarks

This is a static method. Use it to get a PublishingPage object instance that wraps an ListItem that you have already retrieved. Alternatively, use the PublishingWeb.GetPublishingPages method to get a PublishingPage instance.

The sourceListItem must be a non-null ListItem instance.

See also

Reference

PublishingPage class

PublishingPage members

Microsoft.SharePoint.Client.Publishing namespace