InterfaceTypeAttribute Konstruktoren

Definition

Initialisiert eine neue Instanz der InterfaceTypeAttribute-Klasse.

Überlädt

Name Beschreibung
InterfaceTypeAttribute(Int16)

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

InterfaceTypeAttribute(ComInterfaceType)

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

InterfaceTypeAttribute(Int16)

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

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

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 verwendet eine zugrunde liegende 16-Bit-Ganzzahl, die jedes ComInterfaceType Enumerationselement 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
Quelle:
InterfaceTypeAttribute.cs
Quelle:
InterfaceTypeAttribute.cs

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

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: