ArcGIS Pro 2.6 API Reference Guide
GetPage Method
Example 

ArcGIS.Desktop.Layouts Namespace > Layout Class : GetPage Method
Gets the CIMPage for a layout. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public CIMPage GetPage()
Public Function GetPage() As CIMPage

Return Value

Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run.
Example
//Modify a layouts page settings.

//Perform on the worker thread
await QueuedTask.Run(() =>
{

  CIMPage page = layout.GetPage();

  //Do something 

  layout.SetPage(page);
});
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Layout Class
Layout Members