InterfaceTypeAttribute Konstruktory

Definice

Inicializuje novou instanci InterfaceTypeAttribute třídy.

Přetížení

InterfaceTypeAttribute(Int16)

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

InterfaceTypeAttribute(ComInterfaceType)

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

InterfaceTypeAttribute(Int16)

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

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

Popisuje, jak by mělo být rozhraní vystaveno klientům modelu COM.

Poznámky

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

Viz také

Platí pro

InterfaceTypeAttribute(ComInterfaceType)

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

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

Jedna z ComInterfaceType hodnot, která popisuje, jak má být rozhraní vystaveno klientům modelu COM.

Poznámky

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

Platí pro