Accessing Folder Metadata

472
0
04-30-2014 04:01 AM
ChristianAlfons1
New Contributor
Hello.

I can access the metadata of for example a shapefile using:
IGPUtilities gpUtils = new GPUtilitiesClass();
IName nameObj = gpUtils.GetNameObjectFromLocation(filePath);
IMetadata metadata = nameObj as IMetadata;
IPropertySet props = metadata.Metadata

But how should I access the metadata of a folder (containing a metadata.xml file) or a stand-alone XML metadata file?

Is there a generic way to access metadata for any data element?


Thanks!
0 Kudos
0 Replies