Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm using IRelationshipClass.DestinationClass to get an IObjectClass. From here, I want to be able to get the table name, but can only access the AliasName.

Any ideas?

UPDATE Aughhh, after searching for ages, and not finding an answer, I ask the question here, only to find it twenty minutes later.

The IObjectClass can be cast to a IDataset, which has the Name property, which is not the same as AliasName. I should say thanks to Kirk, as it was some code he posted elsewhere that pointed me in the right direction.

For reference,

((IDataset)relClass.DestinationClass).Name
share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

You should be able to cast it to IDataset, which has a Name property.

share|improve this answer
    
Man, you're everywhere, and fast too! Thanks for responding, at least this way I can formally credit you with the answer. –  BlinkyBill Sep 3 '10 at 1:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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