mscorlib [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.5000.0 2.0.0.0 4.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Attribute System.AttributeUsage(System.AttributeTargets.Interface, Inherited=false) System.Runtime.InteropServices.ComVisible(true)

You can apply this attribute to interfaces.

By default, the [<topic://cpgrftypelibraryExportertlbexpexe>] exposes a managed interface to COM as a dual interface, giving you the flexibility of late binding or the performance of early binding. The enumeration enables you to override the default behavior and specify late binding only or early binding only. For example, you can apply InterfaceType (ComInterfaceType.InterfaceIsIDispatch) to an interface to produce metadata to restrict callers to late binding only. Although interfaces that derive from the IDispatch interface are often dual, the InterfaceIsIDispatch enumeration member allows only late-bound calls to the interface methods. This attribute has no effect on the managed view of the interface. For additional information on how interfaces are exposed to COM, see [<topic://cpcontlbexptypeconversion>].

The [<topic://cpgrftypelibraryImportertlbimpexe>] also applies this attribute to imported, nondual interfaces; it applies the appropriate enumeration member to indicate that the interface is dispatch-only or IUnknown -only.

Indicates whether a managed interface is dual, dispatch-only, or IUnknown -only when exposed to COM.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0

  This constructor takes an underlying 16-bit integer that represents each enumeration member. The [<topic://cpgrftypelibraryimportertlbimpexe>] uses this constructor.

  Initializes a new instance of the class with the specified enumeration member.

  Describes how the interface should be exposed to COM clients.
- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0

  For readable code that is less prone to error, always use this constructor.

  Initializes a new instance of the class with the specified enumeration member.

  One of the values that describes how the interface should be exposed to COM clients.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Runtime.InteropServices.ComInterfaceType To be added: an object of type 'ComInterfaceType' To be added

  Gets the value that describes how the interface should be exposed to COM.