This attribute is used to control how the class responds to queries for an IDispatch Interface. If the attribute is present, all calls to QueryInterface that request IID_IDispatch will return E_NOINTERFACE. If the attribute is missing, the class will respond to queries for IID_IDispatch by returning either the class interface or the interface that is explicitly marked as the class's default interface. For details on selecting the default interface see the HasDefaultInterfaceAttribute.
Object
Attribute
NoIDispatchAttribute
[Visual Basic] Public Class NoIDispatchAttribute Inherits Attribute [C#] public class NoIDispatchAttribute : Attribute [C++] public __gc class NoIDispatchAttribute : public Attribute [JScript] public class NoIDispatchAttribute extends Attribute
[To be supplied.]
Namespace: System.Runtime.InteropServices
Assembly: mscorlib.dll
NoIDispatchAttribute Members | System.Runtime.InteropServices Namespace