I've tried TypeOf, which doesn't seem to give me what I want, can't figure out the syntax to IsAssignableFrom.
TIA,
Mike
Printable View
I've tried TypeOf, which doesn't seem to give me what I want, can't figure out the syntax to IsAssignableFrom.
TIA,
Mike
A search for 'plugin' in the vb.net section should get a lot of good info but this post in particular should be helpful: http://www.vbforums.com/showthread.p...hreadid=194447
As for this and other posts it seems like this is the general direction you are headed.
Oh and to directly answer the question, one easy way is to see if GetInterface returns nothing on the object. If it does then it does NOT implement the interface otherwise it does and returns the interface type info.
Also another option is to use a BaseClass instead of Interface and the IsSubClass function to test for existance.
LOL. The post that wouldn't die!
:bigyello:
It takes the award for most referenced post.
Long live post 194447!!!!