Default method on COM idl from C# interop

  • Thread starter Thread starter Francisco
  • Start date Start date
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.
 
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).
 
Back
Top