3.1.5.20.2.2.1 GetPublishingPage

This method is a static CSOM method.

Return Type: Microsoft.SharePoint.Client.Publishing.PublishingPage

Static method to retrieve a PublishingPage (section 3.1.5.20) object that wraps the given ListItem ([MS-CSOMSPT] section 3.2.5.87) object.

Remarks:

The sourceListItem MUST be a non-null ListItem object.

Exceptions:

Error Code

Error Type Name

Condition

-2147024809

ArgumentException

Invalid ListItem. The ListItem provided is not compatible with a PublishingPage.

-2147467261

ArgumentNullException

The sourceListItem is null, which is not valid.

Parameters:

sourceListItem: A ListItem object for which to retrieve a PublishingPage wrapper.

Type: Microsoft.SharePoint.Client.ListItem