Parameters
- xml
Return Value
void
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
System.InvalidOperationException | The metadata for this item cannot be edited |
await QueuedTask.Run(() => { var xml = System.IO.File.ReadAllText(@"E:\Data\Metadata\MetadataForFeatClass.xml"); //Will throw InvalidOperationException if the metadata cannot be changed //so check "CanEdit" first if (featureClassMetadataItem.CanEdit()) featureClassMetadataItem.SetXml(xml); });
Target Platforms: Windows 11, Windows 10