This should be simple, however I can't seem to find how you can get the alias name of a featureclass. I am going though the layers in the TOC, I think they are FeatureLayer type when you are looping, but no obvious way to find the alias.
@happygis, You can set/change the alias name using the SchemaBuilder Modify method from the Pro SDK 3. x.
SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase); FeatureClassDescription description = new FeatureClassDescription(featureClass.GetDefinition()); description.AliasName = "Your-FC-AliasName"; schemaBuilder.Modify(description); bool status = schemaBuilder.Build();
Is there some function like SetAliasName()
Is there something similar for rasters too?
Use FeatureClassDefinition.GetAliasName()
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.