ArcGIS Pro 2.7 API Reference Guide
SetName Method (Layout)
Example 

ArcGIS.Desktop.Layouts Namespace > Layout Class : SetName Method
String
Sets the name of the layout. It is important that all layouts have a unique name so they can be easily referenced. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetName( 
   string name
)
Public Sub SetName( _
   ByVal name As String _
) 

Parameters

name
String
Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run.
Example
//Change the name of a layout.

//Perform on the worker thread
await QueuedTask.Run(() =>
{
  layout.SetName("New Name");
});
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Layout Class
Layout Members