ITypeLibConverter.ConvertTypeLibToAssembly Método
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í.
Convierte una biblioteca de tipos COM en un ensamblado.
Sobrecargas
| Nombre | Description |
|---|---|
| ConvertTypeLibToAssembly(Object, String, Int32, ITypeLibImporterNotifySink, Byte[], StrongNameKeyPair, Boolean) |
Convierte una biblioteca de tipos COM en un ensamblado. |
| ConvertTypeLibToAssembly(Object, String, TypeLibImporterFlags, ITypeLibImporterNotifySink, Byte[], StrongNameKeyPair, String, Version) |
Convierte una biblioteca de tipos COM en un ensamblado. |
ConvertTypeLibToAssembly(Object, String, Int32, ITypeLibImporterNotifySink, Byte[], StrongNameKeyPair, Boolean)
Convierte una biblioteca de tipos COM en un ensamblado.
public:
System::Reflection::Emit::AssemblyBuilder ^ ConvertTypeLibToAssembly(System::Object ^ typeLib, System::String ^ asmFileName, int flags, System::Runtime::InteropServices::ITypeLibImporterNotifySink ^ notifySink, cli::array <System::Byte> ^ publicKey, System::Reflection::StrongNameKeyPair ^ keyPair, bool unsafeInterfaces);
public System.Reflection.Emit.AssemblyBuilder ConvertTypeLibToAssembly(object typeLib, string asmFileName, int flags, System.Runtime.InteropServices.ITypeLibImporterNotifySink notifySink, byte[] publicKey, System.Reflection.StrongNameKeyPair keyPair, bool unsafeInterfaces);
abstract member ConvertTypeLibToAssembly : obj * string * int * System.Runtime.InteropServices.ITypeLibImporterNotifySink * byte[] * System.Reflection.StrongNameKeyPair * bool -> System.Reflection.Emit.AssemblyBuilder
Public Function ConvertTypeLibToAssembly (typeLib As Object, asmFileName As String, flags As Integer, notifySink As ITypeLibImporterNotifySink, publicKey As Byte(), keyPair As StrongNameKeyPair, unsafeInterfaces As Boolean) As AssemblyBuilder
Parámetros
- typeLib
- Object
Objeto que implementa la ITypeLib interfaz .
- asmFileName
- String
Nombre de archivo del ensamblado resultante.
- flags
- Int32
Valor TypeLibImporterFlags que indica cualquier configuración especial.
- notifySink
- ITypeLibImporterNotifySink
ITypeLibImporterNotifySink interfaz implementada por el autor de la llamada.
- publicKey
- Byte[]
Matriz byte que contiene la clave pública.
- keyPair
- StrongNameKeyPair
Objeto StrongNameKeyPair que contiene el par de claves criptográficas pública y privada.
- unsafeInterfaces
- Boolean
Si truees , las interfaces requieren comprobaciones de tiempo de vínculo para el UnmanagedCode permiso. Si falsees , las interfaces requieren comprobaciones en tiempo de ejecución que requieren un recorrido de pila y son más costosas, pero ayudan a proporcionar una mayor protección.
Devoluciones
Objeto AssemblyBuilder que contiene la biblioteca de tipos convertida.
Comentarios
Para obtener más información sobre ITypeLib, consulte su documentación existente en MSDN Library.
Se aplica a
ConvertTypeLibToAssembly(Object, String, TypeLibImporterFlags, ITypeLibImporterNotifySink, Byte[], StrongNameKeyPair, String, Version)
Convierte una biblioteca de tipos COM en un ensamblado.
public:
System::Reflection::Emit::AssemblyBuilder ^ ConvertTypeLibToAssembly(System::Object ^ typeLib, System::String ^ asmFileName, System::Runtime::InteropServices::TypeLibImporterFlags flags, System::Runtime::InteropServices::ITypeLibImporterNotifySink ^ notifySink, cli::array <System::Byte> ^ publicKey, System::Reflection::StrongNameKeyPair ^ keyPair, System::String ^ asmNamespace, Version ^ asmVersion);
public System.Reflection.Emit.AssemblyBuilder ConvertTypeLibToAssembly(object typeLib, string asmFileName, System.Runtime.InteropServices.TypeLibImporterFlags flags, System.Runtime.InteropServices.ITypeLibImporterNotifySink notifySink, byte[] publicKey, System.Reflection.StrongNameKeyPair keyPair, string asmNamespace, Version asmVersion);
abstract member ConvertTypeLibToAssembly : obj * string * System.Runtime.InteropServices.TypeLibImporterFlags * System.Runtime.InteropServices.ITypeLibImporterNotifySink * byte[] * System.Reflection.StrongNameKeyPair * string * Version -> System.Reflection.Emit.AssemblyBuilder
Public Function ConvertTypeLibToAssembly (typeLib As Object, asmFileName As String, flags As TypeLibImporterFlags, notifySink As ITypeLibImporterNotifySink, publicKey As Byte(), keyPair As StrongNameKeyPair, asmNamespace As String, asmVersion As Version) As AssemblyBuilder
Parámetros
- typeLib
- Object
Objeto que implementa la ITypeLib interfaz .
- asmFileName
- String
Nombre de archivo del ensamblado resultante.
- flags
- TypeLibImporterFlags
Valor TypeLibImporterFlags que indica cualquier configuración especial.
- notifySink
- ITypeLibImporterNotifySink
ITypeLibImporterNotifySink interfaz implementada por el autor de la llamada.
- publicKey
- Byte[]
Matriz byte que contiene la clave pública.
- keyPair
- StrongNameKeyPair
Objeto StrongNameKeyPair que contiene el par de claves criptográficas pública y privada.
- asmNamespace
- String
Espacio de nombres del ensamblado resultante.
- asmVersion
- Version
Versión del ensamblado resultante. Si nulles , se usa la versión de la biblioteca de tipos.
Devoluciones
Objeto AssemblyBuilder que contiene la biblioteca de tipos convertida.
Comentarios
Para obtener más información sobre ITypeLib, consulte su documentación existente en MSDN Library.