Idioma

ITypeLibConverter.ConvertTypeLibToAssembly Método

Definição

Converte uma biblioteca de tipos COM em um assembly.

Sobrecargas

ConvertTypeLibToAssembly(Object, String, Int32, ITypeLibImporterNotifySink, Byte[], StrongNameKeyPair, Boolean)

Converte uma biblioteca de tipos COM em um assembly.

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

O objeto que implementa a ITypeLib interface.

asmFileName
String

O nome do arquivo do assembly resultante.

flags
Int32

Um TypeLibImporterFlags valor que indica as configurações especiais.

notifySink
ITypeLibImporterNotifySink

ITypeLibImporterNotifySink interface implementada pelo chamador.

publicKey
Byte[]

Uma byte matriz que contém a chave pública.

keyPair
StrongNameKeyPair

Um StrongNameKeyPair objeto que contém o par de chaves criptográficas públicas e privadas.

unsafeInterfaces
Boolean

Se true, as interfaces exigem verificações de tempo de link para UnmanagedCode permissão. Se false, as interfaces exigem verificações de tempo de execução que exigem uma caminhada de pilha e são mais caras, mas ajudam a fornecer maior proteção.

Retornos

Um AssemblyBuilder objeto que contém a biblioteca de tipos convertida.

Comentários

Para obter mais informações sobre ITypeLib, consulte sua documentação existente na biblioteca MSDN.

Aplica-se a

ConvertTypeLibToAssembly(Object, String, TypeLibImporterFlags, ITypeLibImporterNotifySink, Byte[], StrongNameKeyPair, String, Version)

Converte uma biblioteca de tipos COM em um assembly.

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

O objeto que implementa a ITypeLib interface.

asmFileName
String

O nome do arquivo do assembly resultante.

flags
TypeLibImporterFlags

Um TypeLibImporterFlags valor que indica as configurações especiais.

notifySink
ITypeLibImporterNotifySink

ITypeLibImporterNotifySink interface implementada pelo chamador.

publicKey
Byte[]

Uma byte matriz que contém a chave pública.

keyPair
StrongNameKeyPair

Um StrongNameKeyPair objeto que contém o par de chaves criptográficas públicas e privadas.

asmNamespace
String

O namespace do assembly resultante.

asmVersion
Version

A versão do assembly resultante. Se null, a versão da biblioteca de tipos será usada.

Retornos

Um AssemblyBuilder objeto que contém a biblioteca de tipos convertida.

Comentários

Para obter mais informações sobre ITypeLib, consulte sua documentação existente na biblioteca MSDN.

Aplica-se a