public void SetMetadata( string metadataXml )
Public Sub SetMetadata( _ ByVal metadataXml As String _ )
Parameters
- metadataXml
- The xml formatted metadata
public void SetMetadata( string metadataXml )
Public Sub SetMetadata( _ ByVal metadataXml As String _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
System.Xml.XmlException | There is a load or parse error in the XML |
//var layout = ...; //Must be on the QueuedTask.Run() //Gets the Layout metadata. var layout_xml = layout.GetMetadata(); //Can metadata be edited? if (layout.GetCanEditMetadata()) //Set the metadata back layout.SetMetadata(layout_xml);
Target Platforms: Windows 11, Windows 10