ClassInterfaceAttribute Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy ClassInterfaceAttribute.

Przeciążenia

Nazwa Opis
ClassInterfaceAttribute(Int16)

Inicjuje nowe wystąpienie ClassInterfaceAttribute 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
Źródło:
ClassInterfaceAttribute.cs
Źródło:
ClassInterfaceAttribute.cs

Inicjuje nowe wystąpienie ClassInterfaceAttribute 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ą ze znakiem, 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
Ź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, który jest generowany dla klasy.

Uwagi

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

Dotyczy