InterfaceTypeAttribute Konstruktoren

Definition

Initialisiert eine neue Instanz der InterfaceTypeAttribute-Klasse.

Überlädt

InterfaceTypeAttribute(Int16)

Initialisiert eine neue Instanz der InterfaceTypeAttribute-Klasse mit dem angegebenen ComInterfaceType-Enumerationsmember.

InterfaceTypeAttribute(ComInterfaceType)

Initialisiert eine neue Instanz der InterfaceTypeAttribute-Klasse mit dem angegebenen ComInterfaceType-Enumerationsmember.

InterfaceTypeAttribute(Int16)

Quelle:
InterfaceTypeAttribute.cs
Quelle:
InterfaceTypeAttribute.cs
Quelle:
InterfaceTypeAttribute.cs

Initialisiert eine neue Instanz der InterfaceTypeAttribute-Klasse mit dem angegebenen ComInterfaceType-Enumerationsmember.

public:
 InterfaceTypeAttribute(short interfaceType);
public InterfaceTypeAttribute (short interfaceType);
new System.Runtime.InteropServices.InterfaceTypeAttribute : int16 -> System.Runtime.InteropServices.InterfaceTypeAttribute
Public Sub New (interfaceType As Short)

Parameter

interfaceType
Int16

Beschreibt, wie die Schnittstelle für COM-Clients verfügbar gemacht werden soll.

Hinweise

Dieser Konstruktor akzeptiert eine zugrunde liegende 16-Bit-Ganzzahl, die jeden Enumerationsmember ComInterfaceType darstellt. Der Tlbimp.exe (Type Library Importer) verwendet diesen Konstruktor.

Weitere Informationen

Gilt für:

InterfaceTypeAttribute(ComInterfaceType)

Quelle:
InterfaceTypeAttribute.cs
Quelle:
InterfaceTypeAttribute.cs
Quelle:
InterfaceTypeAttribute.cs

Initialisiert eine neue Instanz der InterfaceTypeAttribute-Klasse mit dem angegebenen ComInterfaceType-Enumerationsmember.

public:
 InterfaceTypeAttribute(System::Runtime::InteropServices::ComInterfaceType interfaceType);
public InterfaceTypeAttribute (System.Runtime.InteropServices.ComInterfaceType interfaceType);
new System.Runtime.InteropServices.InterfaceTypeAttribute : System.Runtime.InteropServices.ComInterfaceType -> System.Runtime.InteropServices.InterfaceTypeAttribute
Public Sub New (interfaceType As ComInterfaceType)

Parameter

interfaceType
ComInterfaceType

Einer der ComInterfaceType-Werte, der beschreibt, wie die Schnittstelle für COM-Clients verfügbar gemacht werden soll.

Hinweise

Verwenden Sie für lesbaren Code, der weniger fehleranfällig ist, immer diesen Konstruktor.

Gilt für: