ClassInterfaceAttribute Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy ClassInterfaceAttribute.

Przeciążenia

ClassInterfaceAttribute(Int16)

Inicjuje ClassInterfaceAttribute nowe wystąpienie klasy z określoną ClassInterfaceType wartością wyliczenia.

ClassInterfaceAttribute(ClassInterfaceType)

Inicjuje ClassInterfaceAttribute nowe wystąpienie klasy przy użyciu określonego ClassInterfaceType elementu członkowskiego wyliczenia.

ClassInterfaceAttribute(Int16)

Źródło:
ClassInterfaceAttribute.cs
Źródło:
ClassInterfaceAttribute.cs
Źródło:
ClassInterfaceAttribute.cs

Inicjuje ClassInterfaceAttribute nowe wystąpienie klasy z określoną ClassInterfaceType wartością wyliczenia.

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

Opisuje typ interfejsu generowanego dla klasy.

Uwagi

Ten konstruktor przyjmuje podstawową 16-bitową liczbę całkowitą podpisaną, która reprezentuje każdy ClassInterfaceType element członkowski wyliczenia. Tlbimp.exe (importer biblioteki typów) używa tego konstruktora.

Zobacz też

Dotyczy

ClassInterfaceAttribute(ClassInterfaceType)

Źródło:
ClassInterfaceAttribute.cs
Źródło:
ClassInterfaceAttribute.cs
Źródło:
ClassInterfaceAttribute.cs

Inicjuje ClassInterfaceAttribute nowe wystąpienie klasy przy użyciu określonego ClassInterfaceType elementu członkowskiego wyliczenia.

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

ClassInterfaceType Jedna z wartości opisujących typ interfejsu generowanego dla klasy.

Uwagi

W przypadku kodu czytelnego, który jest mniej podatny na błąd, zawsze należy użyć tego konstruktora.

Dotyczy