6

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?


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
PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Sep 3, 2010 at 0:47

1 Answer 1

9

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

answered Sep 3, 2010 at 0:58
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.