ClassInterfaceAttribute Konstruktory

Definice

Inicializuje novou instanci ClassInterfaceAttribute třídy.

Přetížení

Name Description
ClassInterfaceAttribute(Int16)

Inicializuje novou instanci ClassInterfaceAttribute třídy se zadanou ClassInterfaceType hodnotou výčtu.

ClassInterfaceAttribute(ClassInterfaceType)

Inicializuje novou instanci ClassInterfaceAttribute třídy se zadaným ClassInterfaceType členem výčtu.

ClassInterfaceAttribute(Int16)

Zdroj:
ClassInterfaceAttribute.cs
Zdroj:
ClassInterfaceAttribute.cs
Zdroj:
ClassInterfaceAttribute.cs
Zdroj:
ClassInterfaceAttribute.cs
Zdroj:
ClassInterfaceAttribute.cs

Inicializuje novou instanci ClassInterfaceAttribute třídy se zadanou ClassInterfaceType hodnotou výčtu.

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

Parametry

classInterfaceType
Int16

Popisuje typ rozhraní, které je generováno pro třídu.

Poznámky

Tento konstruktor přebírá základní 16bitové signed integer, který představuje každý ClassInterfaceType člen výčtu. Tento konstruktor používá Tlbimp.exe (Type Library Importer).

Viz také

Platí pro

ClassInterfaceAttribute(ClassInterfaceType)

Zdroj:
ClassInterfaceAttribute.cs
Zdroj:
ClassInterfaceAttribute.cs
Zdroj:
ClassInterfaceAttribute.cs
Zdroj:
ClassInterfaceAttribute.cs
Zdroj:
ClassInterfaceAttribute.cs

Inicializuje novou instanci ClassInterfaceAttribute třídy se zadaným ClassInterfaceType členem výčtu.

public:
 ClassInterfaceAttribute(System::Runtime::InteropServices::ClassInterfaceType classInterfaceType);
public ClassInterfaceAttribute(System.Runtime.InteropServices.ClassInterfaceType classInterfaceType);
new System.Runtime.InteropServices.ClassInterfaceAttribute : System.Runtime.InteropServices.ClassInterfaceType -> System.Runtime.InteropServices.ClassInterfaceAttribute
Public Sub New (classInterfaceType As ClassInterfaceType)

Parametry

classInterfaceType
ClassInterfaceType

Jedna z ClassInterfaceType hodnot, která popisuje typ rozhraní, které je generováno pro třídu.

Poznámky

Pro čitelný kód, který je méně náchylný k chybě, vždy použijte tento konstruktor.

Platí pro