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, although the [<topic://cpgrfTypeLibraryImporterTlbimpexe>] typically applies it for you when it imports a type library.

When a source interface is imported from a type library, any methods it implements are added as events to a generated event interface. Tlbimp.exe applies to the event interface to identify the managed class that implements the methods of the event interface and implements the original source interface. The common language runtime uses this attribute at run time to perform the following tasks:

Associate events exposed by the interface to their implementation in the event provider class.

Link the events to the original COM source interface.

You rarely apply this attribute. However, if you plan to write source code that produces metadata that closely simulates metadata produced by Tlbimp.exe, you should create a event interface for each original source interface. For a detailed description about how Tlbimp.exe imports events, see [<topic://cpcontlbimpmemberconversion>]. For instruction about how to expose a COM event to a.NET client, see [<topic://cpconhandlingeventsraisedbycomsource>].

Identifies the source interface and the class that implements the methods of the event interface that is generated when a coclass is imported from a COM type library.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  To be added

  Initializes a new instance of the class with the source interface and event provider class.

  A that contains the original source interface from the type library. COM uses this interface to call back to the managed class.
  A that contains the class that implements the methods of the event interface.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Type To be added: an object of type 'Type'

  This value is set to the type of the event provider class generated by the [<topic://cpgrfTypeLibraryImporterTlbimpexe>]. Tlbimp.exe appends the source interface name with EventProvider. For example, IMyInterface becomes IMyInterfaceEventProvider.

  Gets the class that implements the methods of the event interface.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Type To be added: an object of type 'Type'

  A source interface has at least one event member, and typically one for each method of the source interface. COM uses this interface to call back to the managed class.

  Gets the original source interface from the type library.