Is there an ArcObjects function to get a short name version of an SDE featureclass?

For example if my featureclass is:


How do I just get "BARLAYER".

Or is it just a simple case of using string manipulation techniques with your language of choice?

BTW - This is an ArcEngine app.

  • 1
    Why not use IFeatureclass.AliasName? Its purpose is to provide a user friendly name. It is editable via IClassSchemaEdit. – Kirk Kuykendall Sep 27 '11 at 21:01
  • I think you have to edit that yourself though? – Vidar Sep 28 '11 at 8:37

Cast the sde workspace to ISqlSyntax and use the ParseTableName function.

| improve this answer | |
  • Brilliant - I don't think I would ever have found that. – Vidar Sep 28 '11 at 8:38

Got LINQ? Just stick a .Split('.').Last() on your property or variable that has the featureclass name.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.