ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / Presentation Class / SetMetadata Method
The xml formatted metadata

In This Topic
    SetMetadata Method (Presentation)
    In This Topic
    Sets the presentation's metadata. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub SetMetadata( _
       ByVal metadataXml As String _
    ) 
    public void SetMetadata( 
       string metadataXml
    )

    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 metadata must be editable. Refer to GetCanEditMetadata.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.5 or higher.
    See Also