Get Metadata from Datasets not in a map or project

250
0
02-06-2024 11:29 AM
Status: Open
Labels (1)
TimSexton1
Occasional Contributor

We can get metadata from a MapMember object like a BasicFeatureLayer or StandAloneTable in 3.1.  But it would be nice to be able to get the metadata from a FeatureClass, Table or RelationshipClass Dataset that is not in the project or map.

Would like to be able to do something like this:

var table = Geodatabase.OpenDataset<Table>(tableName);
var tableMetadata = table.GetMetadata();

var relationship = Geodatabase.OpenDataset<RelationshipClass>(relationshipName);
var relationshipMetadata = relationship.GetMetadata();