InterfaceTypeAttribute Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Inicializa una nueva instancia de la clase InterfaceTypeAttribute.
Sobrecargas
| Nombre | Description |
|---|---|
| InterfaceTypeAttribute(Int16) |
Inicializa una nueva instancia de la InterfaceTypeAttribute clase con el miembro de enumeración especificado ComInterfaceType . |
| InterfaceTypeAttribute(ComInterfaceType) |
Inicializa una nueva instancia de la InterfaceTypeAttribute clase con el miembro de enumeración especificado ComInterfaceType . |
InterfaceTypeAttribute(Int16)
- Source:
- InterfaceTypeAttribute.cs
- Source:
- InterfaceTypeAttribute.cs
- Source:
- InterfaceTypeAttribute.cs
- Source:
- InterfaceTypeAttribute.cs
- Source:
- InterfaceTypeAttribute.cs
Inicializa una nueva instancia de la InterfaceTypeAttribute clase con el miembro de enumeración especificado ComInterfaceType .
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
Describe cómo se debe exponer la interfaz a los clientes COM.
Comentarios
Este constructor toma un entero de 16 bits subyacente que representa cada ComInterfaceType miembro de enumeración. El Tlbimp.exe (Importador de biblioteca de tipos) usa este constructor.
Consulte también
Se aplica a
InterfaceTypeAttribute(ComInterfaceType)
- Source:
- InterfaceTypeAttribute.cs
- Source:
- InterfaceTypeAttribute.cs
- Source:
- InterfaceTypeAttribute.cs
- Source:
- InterfaceTypeAttribute.cs
- Source:
- InterfaceTypeAttribute.cs
Inicializa una nueva instancia de la InterfaceTypeAttribute clase con el miembro de enumeración especificado ComInterfaceType .
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
Uno de los ComInterfaceType valores que describe cómo se debe exponer la interfaz a los clientes COM.
Comentarios
Para el código legible que es menos propenso a errores, use siempre este constructor.