ITypeLibConverter.ConvertTypeLibToAssembly Metoda

Definicja

Konwertuje bibliotekę typów MODELU COM na zestaw.

Przeciążenia

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

Konwertuje bibliotekę typów MODELU COM na zestaw.

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

Konwertuje bibliotekę typów MODELU COM na zestaw.

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

Konwertuje bibliotekę typów MODELU COM na zestaw.

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

Obiekt, który implementuje ITypeLib interfejs.

asmFileName
String

Nazwa pliku wynikowego zestawu.

flags
Int32

Wartość wskazująca TypeLibImporterFlags wszystkie ustawienia specjalne.

notifySink
ITypeLibImporterNotifySink

ITypeLibImporterNotifySink interfejs zaimplementowany przez obiekt wywołujący.

publicKey
Byte[]

Tablica byte zawierająca klucz publiczny.

keyPair
StrongNameKeyPair

StrongNameKeyPair Obiekt zawierający parę publicznych i prywatnych kluczy kryptograficznych.

unsafeInterfaces
Boolean

Jeśli trueinterfejsy wymagają czasu połączenia, sprawdza UnmanagedCode uprawnienia. Jeśli falseinterfejsy wymagają kontroli czasu wykonywania, które wymagają stosu i są droższe, ale pomagają zapewnić większą ochronę.

Zwraca

AssemblyBuilder Obiekt zawierający przekonwertowaną bibliotekę typów.

Uwagi

Aby uzyskać więcej informacji na ITypeLibtemat programu , zobacz istniejącą dokumentację w bibliotece MSDN.

Dotyczy

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

Konwertuje bibliotekę typów MODELU COM na zestaw.

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

Obiekt, który implementuje ITypeLib interfejs.

asmFileName
String

Nazwa pliku wynikowego zestawu.

flags
TypeLibImporterFlags

Wartość wskazująca TypeLibImporterFlags wszystkie ustawienia specjalne.

notifySink
ITypeLibImporterNotifySink

ITypeLibImporterNotifySink interfejs zaimplementowany przez obiekt wywołujący.

publicKey
Byte[]

Tablica byte zawierająca klucz publiczny.

keyPair
StrongNameKeyPair

StrongNameKeyPair Obiekt zawierający parę publicznych i prywatnych kluczy kryptograficznych.

asmNamespace
String

Przestrzeń nazw wynikowego zestawu.

asmVersion
Version

Wersja wynikowego zestawu. Jeśli nulljest używana wersja biblioteki typów.

Zwraca

AssemblyBuilder Obiekt zawierający przekonwertowaną bibliotekę typów.

Uwagi

Aby uzyskać więcej informacji na ITypeLibtemat programu , zobacz istniejącą dokumentację w bibliotece MSDN.

Dotyczy