InterfaceTypeAttribute Construtores

Definição

Inicializa uma nova instância da classe InterfaceTypeAttribute.

Sobrecargas

InterfaceTypeAttribute(Int16)

Inicializa uma nova instância da classe InterfaceTypeAttribute com o membro de enumeração ComInterfaceType especificado.

InterfaceTypeAttribute(ComInterfaceType)

Inicializa uma nova instância da classe InterfaceTypeAttribute com o membro de enumeração ComInterfaceType especificado.

InterfaceTypeAttribute(Int16)

Origem:
InterfaceTypeAttribute.cs
Origem:
InterfaceTypeAttribute.cs
Origem:
InterfaceTypeAttribute.cs

Inicializa uma nova instância da classe InterfaceTypeAttribute com o membro de enumeração ComInterfaceType especificado.

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

Parâmetros

interfaceType
Int16

Descreve como a interface deve ser exposta a clientes COM.

Comentários

Esse construtor usa um inteiro de 16 bits subjacente que representa cada ComInterfaceType membro de enumeração. O Tlbimp.exe (Importador de Biblioteca de Tipos) usa esse construtor.

Confira também

Aplica-se a

InterfaceTypeAttribute(ComInterfaceType)

Origem:
InterfaceTypeAttribute.cs
Origem:
InterfaceTypeAttribute.cs
Origem:
InterfaceTypeAttribute.cs

Inicializa uma nova instância da classe InterfaceTypeAttribute com o membro de enumeração ComInterfaceType especificado.

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)

Parâmetros

interfaceType
ComInterfaceType

Um dos valores ComInterfaceType que descreve como a interface deve ser exposta a clientes COM.

Comentários

Para código legível menos propenso a erros, sempre use esse construtor.

Aplica-se a