Default method on COM idl from C# interop

F

Francisco

Hello,

May I have a method exported as default on a exported COM interop
from a C# dll using attributes?

Thanks in advance.
 
N

Nicholas Paldino [.NET/C# MVP]

Francisco,

Yes, you may. You have to tag the method with the DispId attribute,
giving it a dispatch id of 0 (which means the method is the default method).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top