Module.GetPEKind(PortableExecutableKinds, ImageFileMachine) 方法

定义

获取一对值,这一对值指示某个模块中代码的性质和该模块的目标平台。

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

参数

peKind
PortableExecutableKinds

当此方法返回时,为 PortableExecutableKinds 值的组合,用于指示模块中代码的性质。

machine
ImageFileMachine

当此方法返回时,为 ImageFileMachine 值中的一个,用于指示模块的目标平台。

适用于

产品 版本
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 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, 2.1