Compartir a través de


Método ITypeLibConverter.ConvertTypeLibToAssembly (Object, String, Int32, ITypeLibImporterNotifySink, Byte[], StrongNameKeyPair, Boolean)

 

Publicado: octubre de 2016

Convierte una biblioteca de tipos COM en un ensamblado.

Espacio de nombres:   System.Runtime.InteropServices
Ensamblado:  mscorlib (en mscorlib.dll)

Sintaxis

AssemblyBuilder ConvertTypeLibToAssembly(
    object typeLib,
    string asmFileName,
    int flags,
    ITypeLibImporterNotifySink notifySink,
    byte[] publicKey,
    StrongNameKeyPair keyPair,
    bool unsafeInterfaces
)
AssemblyBuilder^ ConvertTypeLibToAssembly(
    Object^ typeLib,
    String^ asmFileName,
    int flags,
    ITypeLibImporterNotifySink^ notifySink,
    array<unsigned char>^ publicKey,
    StrongNameKeyPair^ keyPair,
    bool unsafeInterfaces
)
abstract ConvertTypeLibToAssembly : 
        typeLib:Object *
        asmFileName:string *
        flags:int *
        notifySink:ITypeLibImporterNotifySink *
        publicKey:byte[] *
        keyPair:StrongNameKeyPair *
        unsafeInterfaces:bool -> AssemblyBuilder
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
    Type: System.Object

    Objeto que implementa la interfaz ITypeLib.

  • asmFileName
    Type: System.String

    El nombre de archivo del ensamblado resultante.

  • publicKey
    Type: System.Byte[]

    Un byte matriz que contiene la clave pública.

  • unsafeInterfaces
    Type: System.Boolean

    Si true, las interfaces necesitan comprobaciones en tiempo de vínculo de UnmanagedCode permiso. Si false, las interfaces necesitan comprobaciones en tiempo de ejecución que requieren una pila recorren y son más caros, pero ayuda a proporcionar una mayor protección.

Valor devuelto

Type: System.Reflection.Emit.AssemblyBuilder

Un AssemblyBuilder objeto que contiene la biblioteca de tipos convertidos.

Comentarios

Para obtener más información sobre ITypeLib, consulte la documentación correspondiente en MSDN library.

Información de versión

.NET Framework
Disponible desde 1.1

Ver también

ConvertTypeLibToAssembly Sobrecarga
Interfaz ITypeLibConverter
Espacio de nombres System.Runtime.InteropServices
Atributos para importar bibliotecas de tipos en ensamblados de interoperabilidad

Volver al principio