ITypeLibConverter.ConvertTypeLibToAssembly Método

Definição

Converte uma biblioteca de tipo COM em um assembly.Converts a COM type library to an assembly.

Sobrecargas

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

Converte uma biblioteca de tipo COM em um assembly.Converts a COM type library to an assembly.

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

Converte uma biblioteca de tipo COM em um assembly.Converts a COM type library to an assembly.

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

Converte uma biblioteca de tipo COM em um assembly.Converts a COM type library to an 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 interface do ITypeLib.The object that implements the ITypeLib interface.

asmFileName
String

O nome do arquivo do assembly resultante.The file name of the resulting assembly.

flags
Int32

Um valor TypeLibImporterFlags que indica qualquer configuração especial.A TypeLibImporterFlags value indicating any special settings.

notifySink
ITypeLibImporterNotifySink

A interface ITypeLibImporterNotifySink implementada pelo chamador.ITypeLibImporterNotifySink interface implemented by the caller.

publicKey
Byte[]

Uma matriz byte que contém a chave pública.A byte array containing the public key.

keyPair
StrongNameKeyPair

Um objeto StrongNameKeyPair que contém o par de chaves de criptografia públicas e privadas.A StrongNameKeyPair object containing the public and private cryptographic key pair.

unsafeInterfaces
Boolean

Se true, as interfaces exigirão verificações de tempo de vinculação para a permissão UnmanagedCode.If true, the interfaces require link time checks for UnmanagedCode permission. Se false, as interfaces exigirão verificações de tempo de execução que exigem percorrer uma pilha e são mais caras, mas ajudam a dar maior proteção.If false, the interfaces require run time checks that require a stack walk and are more expensive, but help provide greater protection.

Retornos

AssemblyBuilder

Um objeto AssemblyBuilder que contém a biblioteca de tipos convertida.An AssemblyBuilder object containing the converted type library.

Comentários

Para obter mais informações ITypeLib , consulte sua documentação existente na biblioteca do MSDN.For more information on ITypeLib, please see its existing documentation in the MSDN library.

Aplica-se a

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

Converte uma biblioteca de tipo COM em um assembly.Converts a COM type library to an 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 interface do ITypeLib.The object that implements the ITypeLib interface.

asmFileName
String

O nome do arquivo do assembly resultante.The file name of the resulting assembly.

flags
TypeLibImporterFlags

Um valor TypeLibImporterFlags que indica qualquer configuração especial.A TypeLibImporterFlags value indicating any special settings.

notifySink
ITypeLibImporterNotifySink

A interface ITypeLibImporterNotifySink implementada pelo chamador.ITypeLibImporterNotifySink interface implemented by the caller.

publicKey
Byte[]

Uma matriz byte que contém a chave pública.A byte array containing the public key.

keyPair
StrongNameKeyPair

Um objeto StrongNameKeyPair que contém o par de chaves de criptografia públicas e privadas.A StrongNameKeyPair object containing the public and private cryptographic key pair.

asmNamespace
String

O namespace do assembly resultante.The namespace for the resulting assembly.

asmVersion
Version

A versão do assembly resultante.The version of the resulting assembly. Se null, a versão da biblioteca de tipos será usada.If null, the version of the type library is used.

Retornos

AssemblyBuilder

Um objeto AssemblyBuilder que contém a biblioteca de tipos convertida.An AssemblyBuilder object containing the converted type library.

Comentários

Para obter mais informações ITypeLib , consulte sua documentação existente na biblioteca do MSDN.For more information on ITypeLib, please see its existing documentation in the MSDN library.

Aplica-se a