Language

ITypeLibConverter.ConvertTypeLibToAssembly メソッド

定義

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 ライブラリの既存のドキュメントを参照してください。

適用対象