ArcGIS Pro 2.7 API Reference Guide
SetMetadata Method (Layout)

ArcGIS.Desktop.Layouts Namespace > Layout Class : SetMetadata Method
The xml formatted metadata
Sets the Layout metadata. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public void SetMetadata( 
   string metadataXml
)
Public Sub SetMetadata( _
   ByVal metadataXml As String _
) 

Parameters

metadataXml
The xml formatted metadata
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
There is a load or parse error in the XML
Remarks
The input xml must be a valid metadata document. The Layout metadata must be editable. Refer to GetCanEditMetadata.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Layout Class
Layout Members