ITypeLibConverter.ConvertTypeLibToAssembly Metoda

Definice

Převede knihovnu typů modelu COM na sestavení.

Přetížení

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

Převede knihovnu typů modelu COM na sestavení.

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

Převede knihovnu typů modelu COM na sestavení.

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

Převede knihovnu typů modelu COM na sestavení.

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

Parametry

typeLib
Object

Objekt, který implementuje ITypeLib rozhraní.

asmFileName
String

Název souboru výsledného sestavení.

flags
Int32

Hodnota TypeLibImporterFlags označující všechna speciální nastavení.

notifySink
ITypeLibImporterNotifySink

ITypeLibImporterNotifySink rozhraní implementované volajícím.

publicKey
Byte[]

Pole byte obsahující veřejný klíč.

keyPair
StrongNameKeyPair

Objekt StrongNameKeyPair obsahující dvojici veřejného a privátního kryptografického klíče.

unsafeInterfaces
Boolean

Pokud true, rozhraní vyžadují kontrolu oprávnění čas UnmanagedCode propojení. Pokud false, rozhraní vyžadují kontroly za běhu, které vyžadují procházení zásobníkem a jsou dražší, ale pomáhají poskytovat větší ochranu.

Návraty

Objekt AssemblyBuilder obsahující převedenou knihovnu typů.

Poznámky

Další informace o nástroji ITypeLibnajdete v jeho stávající dokumentaci v knihovně MSDN.

Platí pro

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

Převede knihovnu typů modelu COM na sestavení.

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

Parametry

typeLib
Object

Objekt, který implementuje ITypeLib rozhraní.

asmFileName
String

Název souboru výsledného sestavení.

flags
TypeLibImporterFlags

Hodnota TypeLibImporterFlags označující všechna speciální nastavení.

notifySink
ITypeLibImporterNotifySink

ITypeLibImporterNotifySink rozhraní implementované volajícím.

publicKey
Byte[]

Pole byte obsahující veřejný klíč.

keyPair
StrongNameKeyPair

Objekt StrongNameKeyPair obsahující dvojici veřejného a privátního kryptografického klíče.

asmNamespace
String

Obor názvů pro výsledné sestavení.

asmVersion
Version

Verze výsledného sestavení. Pokud null, použije se verze knihovny typů.

Návraty

Objekt AssemblyBuilder obsahující převedenou knihovnu typů.

Poznámky

Další informace o nástroji ITypeLibnajdete v jeho stávající dokumentaci v knihovně MSDN.

Platí pro