ITypeLibConverter.ConvertTypeLibToAssembly Método

Definição

Converte uma biblioteca de tipos COM numa assembleia.

Sobrecargas

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

Converte uma biblioteca de tipos COM numa assembleia.

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 ficheiro do conjunto resultante.

flags
Int32

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

notifySink
ITypeLibImporterNotifySink

ITypeLibImporterNotifySink Interface implementada pelo interlocutor.

publicKey
Byte[]

Um byte array contendo a chave pública.

keyPair
StrongNameKeyPair

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

unsafeInterfaces
Boolean

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

Devoluções

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

Observações

Para mais informações sobre ITypeLib, por favor consulte a documentação existente na biblioteca MSDN.

Aplica-se a

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

Converte uma biblioteca de tipos COM numa assembleia.

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 ficheiro do conjunto resultante.

flags
TypeLibImporterFlags

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

notifySink
ITypeLibImporterNotifySink

ITypeLibImporterNotifySink Interface implementada pelo interlocutor.

publicKey
Byte[]

Um byte array contendo a chave pública.

keyPair
StrongNameKeyPair

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

asmNamespace
String

O espaço de nomes para a assembleia resultante.

asmVersion
Version

A versão do conjunto resultante. Se null, a versão da biblioteca de tipos é utilizada.

Devoluções

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

Observações

Para mais informações sobre ITypeLib, por favor consulte a documentação existente na biblioteca MSDN.

Aplica-se a