Controls how a managed interface is exposed to COM clients (IDispatch derived or IUnknown derived).
This attribute indicates whether a managed interface is Dual, IDispatch or IUnknown based when exposed to COM. If the attrigute is missing the interface is exposed to COM as a Dual interface.
Object
Attribute
InterfaceTypeAttribute
[Visual Basic] Public Class InterfaceTypeAttribute Inherits Attribute [C#] public class InterfaceTypeAttribute : Attribute [C++] public __gc class InterfaceTypeAttribute : public Attribute [JScript] public class InterfaceTypeAttribute extends Attribute
This attribute has no effect on the managed view of the interface. See Interop metadata spec for more details on this attribute class.
Can be used to attribute interfaces.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib.dll
InterfaceTypeAttribute Members | System.Runtime.InteropServices Namespace | ComInterfaceType