ITypeLibConverter.ConvertTypeLibToAssembly Método

Definición

Convierte una biblioteca de tipos COM en un ensamblado.

Sobrecargas

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 interfaz ITypeLib.

asmFileName
String

Nombre de archivo del ensamblado resultante.

flags
Int32

Valor TypeLibImporterFlags que indica cualquier configuración especial.

notifySink
ITypeLibImporterNotifySink

Interfaz ITypeLibImporterNotifySink implementada por el que llama.

publicKey
Byte[]

Matriz de byte que contiene la clave pública.

keyPair
StrongNameKeyPair

Objeto StrongNameKeyPair que contiene el par de claves criptográficas públicas y privadas.

unsafeInterfaces
Boolean

Si es true, las interfaces requieren que, en el momento de la vinculación, se compruebe si se dispone del permiso UnmanagedCode. Si es false, las interfaces necesitan comprobaciones en tiempo de ejecución que requieren un recorrido de la pila; son más caras pero proporcionan una protección mayor.

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 interfaz ITypeLib.

asmFileName
String

Nombre de archivo del ensamblado resultante.

flags
TypeLibImporterFlags

Valor TypeLibImporterFlags que indica cualquier configuración especial.

notifySink
ITypeLibImporterNotifySink

Interfaz ITypeLibImporterNotifySink implementada por el que llama.

publicKey
Byte[]

Matriz de byte que contiene la clave pública.

keyPair
StrongNameKeyPair

Objeto StrongNameKeyPair que contiene el par de claves criptográficas públicas y privadas.

asmNamespace
String

Espacio de nombres para el ensamblado resultante.

asmVersion
Version

Versión del ensamblado resultante. Si null, se utilizará 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.

Se aplica a