ITypeLibConverter.ConvertTypeLibToAssembly メソッド

定義

COM タイプ ライブラリをアセンブリに変換します。

オーバーロード

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

COM タイプ ライブラリをアセンブリに変換します。

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

COM タイプ ライブラリをアセンブリに変換します。

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

COM タイプ ライブラリをアセンブリに変換します。

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

パラメーター

typeLib
Object

ITypeLib インターフェイスを実装するオブジェクト。

asmFileName
String

結果として得られるアセンブリのファイル名。

flags
Int32

任意の特別な設定を示す TypeLibImporterFlags 値。

notifySink
ITypeLibImporterNotifySink

呼び出し元によって実装されている ITypeLibImporterNotifySink インターフェイス。

publicKey
Byte[]

公開キーを保持している byte 配列。

keyPair
StrongNameKeyPair

公開暗号キーと秘密暗号キーのペアを保持している StrongNameKeyPair オブジェクト。

unsafeInterfaces
Boolean

true の場合は、インターフェイスでは UnmanagedCode アクセス許可についてリンク時チェックが要求されます。 false の場合は、インターフェイスではランタイム チェックが要求されます。この場合は、スタック ウォークが必要となるため負荷もかかりますが、保護は強化されます。

戻り値

変換後のタイプ ライブラリを保持している AssemblyBuilder オブジェクト。

注釈

ITypeLib詳細については、MSDN ライブラリの既存のドキュメントを参照してください。

適用対象

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

COM タイプ ライブラリをアセンブリに変換します。

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

パラメーター

typeLib
Object

ITypeLib インターフェイスを実装するオブジェクト。

asmFileName
String

結果として得られるアセンブリのファイル名。

flags
TypeLibImporterFlags

任意の特別な設定を示す TypeLibImporterFlags 値。

notifySink
ITypeLibImporterNotifySink

呼び出し元によって実装されている ITypeLibImporterNotifySink インターフェイス。

publicKey
Byte[]

公開キーを保持している byte 配列。

keyPair
StrongNameKeyPair

公開暗号キーと秘密暗号キーのペアを保持している StrongNameKeyPair オブジェクト。

asmNamespace
String

結果として得られるアセンブリの名前空間。

asmVersion
Version

結果として得られるアセンブリのバージョン。 null の場合は、タイプ ライブラリのバージョンが使用されます。

戻り値

変換後のタイプ ライブラリを保持している AssemblyBuilder オブジェクト。

注釈

ITypeLib詳細については、MSDN ライブラリの既存のドキュメントを参照してください。

適用対象