ModuleBuilder.GetPEKind(PortableExecutableKinds, ImageFileMachine) 方法

定義

取得值組,表示模組中的程式碼性質,以及模組的目標平台。

public:
 override void GetPEKind([Runtime::InteropServices::Out] System::Reflection::PortableExecutableKinds % peKind, [Runtime::InteropServices::Out] System::Reflection::ImageFileMachine % machine);
public override void GetPEKind (out System.Reflection.PortableExecutableKinds peKind, out System.Reflection.ImageFileMachine machine);
override this.GetPEKind : PortableExecutableKinds * ImageFileMachine -> unit
Public Overrides Sub GetPEKind (ByRef peKind As PortableExecutableKinds, ByRef machine As ImageFileMachine)

參數

peKind
PortableExecutableKinds

這個方法會傳回 PortableExecutableKinds 值的組合,表示模組中的程式碼性質。

machine
ImageFileMachine

這個方法會傳回其中一個 ImageFileMachine 值,表示模組的目標平台。

備註

針對動態模組, peKind 一律 PortableExecutableKinds.NotAPortableExecutableImage 為 ,且 machine 一律為0 (零) 。

適用於