InterfaceTypeAttribute Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy InterfaceTypeAttribute.

Przeciążenia

InterfaceTypeAttribute(Int16)

Inicjuje InterfaceTypeAttribute nowe wystąpienie klasy z określonym ComInterfaceType elementem członkowskim wyliczenia.

InterfaceTypeAttribute(ComInterfaceType)

Inicjuje InterfaceTypeAttribute nowe wystąpienie klasy z określonym ComInterfaceType elementem członkowskim wyliczenia.

InterfaceTypeAttribute(Int16)

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

Inicjuje InterfaceTypeAttribute nowe wystąpienie klasy z określonym ComInterfaceType elementem członkowskim wyliczenia.

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

Parametry

interfaceType
Int16

Opisuje sposób uwidaczniania interfejsu klientom COM.

Uwagi

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

Zobacz też

Dotyczy

InterfaceTypeAttribute(ComInterfaceType)

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

Inicjuje InterfaceTypeAttribute nowe wystąpienie klasy z określonym ComInterfaceType elementem członkowskim wyliczenia.

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)

Parametry

interfaceType
ComInterfaceType

ComInterfaceType Jedna z wartości opisujących sposób uwidocznienia interfejsu klientom COM.

Uwagi

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

Dotyczy