Platform Platform Platform Platform Enum

定义

指定进程外的外接程序在其中运行的进程的每字位数。Specifies the bits-per-word of the process in which an out-of-process add-in is run.

public enum class Platform
[System.Serializable]
public enum Platform
type Platform = 
Public Enum Platform
继承
属性

字段

AnyCpu AnyCpu AnyCpu AnyCpu 1

使用与操作系统相同的每字位数将外接程序加载到外部进程中。The add-in is loaded into an external process with the same bits-per-word as the operating system.

ARM ARM ARM ARM 4

要加载到 ARM 处理器上 32 位进程中的外接程序。The add-in is loaded into a 32-bit process on an ARM processor.

Host Host Host Host 0

使用与主机进程相同的每字位数将外接程序加载到外部进程中。The add-in is loaded into an external process with the same bits-per-word as the host process.

X64 X64 X64 X64 3

要加载到 64 位外部进程中的外接程序。The add-in is loaded into a 64-bit external process.

X86 X86 X86 X86 2

要加载到 32 位外部进程中的外接程序。The add-in is loaded into a 32-bit external process.

注解

下表显示了枚举值如何影响不同操作系统上的进程的每字位数:The following table shows how the enumeration value affects the bits-per-word of the process on different operating systems:

32 位操作系统32-bit operating system 64 位操作系统64-bit operating system
主机Host 32 位32-bit 与宿主进程相同Same as host process
AnyCPUAnyCPU 32 位32-bit 64 位64-bit
X86X86 32 位32-bit 32 位32-bit
X64X64 引发异常Exception is thrown 64 位64-bit
32 位32-bit 不可用N/A

适用于