英語で読む

次の方法で共有


ModuleBuilder.GetPEKind(PortableExecutableKinds, ImageFileMachine) メソッド

定義

モジュール内のコードの性質およびモジュールの対象プラットフォームを示す値のペアを取得します。

C#
public override void GetPEKind(out System.Reflection.PortableExecutableKinds peKind, out System.Reflection.ImageFileMachine machine);

パラメーター

peKind
PortableExecutableKinds

このメソッドから制御が戻る場合、モジュール内のコードの性質を示す PortableExecutableKinds 値の組み合わせ。

machine
ImageFileMachine

このメソッドから制御が戻る場合、モジュールの対象プラットフォームを示す ImageFileMachine 値の 1 つ。

注釈

動的モジュールの場合、 peKind は常に PortableExecutableKinds.NotAPortableExecutableImage であり、 machine 常に 0 (ゼロ) です。

適用対象

製品 バージョン
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)