InterfaceTypeAttribute Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy InterfaceTypeAttribute.

Przeciążenia

Nazwa Opis
InterfaceTypeAttribute(Int16)

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

InterfaceTypeAttribute(ComInterfaceType)

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

InterfaceTypeAttribute(Int16)

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

Inicjuje InterfaceTypeAttribute nowe wystąpienie klasy przy użyciu określonego ComInterfaceType elementu członkowskiego 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ą reprezentującą 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
Źródło:
InterfaceTypeAttribute.cs
Źródło:
InterfaceTypeAttribute.cs

Inicjuje InterfaceTypeAttribute nowe wystąpienie klasy przy użyciu określonego ComInterfaceType elementu członkowskiego 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 uwidaczniania interfejsu klientom COM.

Uwagi

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

Dotyczy