AnsweredAssumed Answered

how to retrieve/set metadata on a layer

Question asked by shchau on May 30, 2018
Latest reply on Jun 5, 2018 by luke.coursey

Using the C# ArcObject SDK, I can set/get metadata on a layer with the following calls:

 

IRasterLayer layer = ...;

 

ESRI.ArcGIS.Geodatabase.IDataset dataset = layer as IDataset;
ESRI.ArcGIS.Geodatabase.RasterDatasetName objectClassName =(ESRI.ArcGIS.Geodatabase.RasterDatasetName)dataset.FullName;
ESRI.ArcGIS.Geodatabase.IMetadata metadata = (ESRI.ArcGIS.Geodatabase.IMetadata)objectClassName;

IPropertySet properties = (IPropertySet)metadata.Metadata;

 

is there anything equivalent in ArcGIS Pro SDK?

Outcomes