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 map = MapView.Active.Map; if (map == null) return; //Get map's metadata var mapMetadata = map.GetMetadata(); //TODO:Make edits to metadata using the retrieved mapMetadata string. //Set the modified metadata back to the map. if (map.GetCanEditMetadata()) map.SetMetadata(mapMetadata);
Target Platforms: Windows 11, Windows 10