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
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
sourceListItem
Type: Microsoft.SharePoint.Client.ListItemAn SPListItem object for which to retrieve a PublishingPage wrapper.
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.