AddInProcess 构造函数

定义

初始化 AddInProcess 类的新实例。Initializes a new instance of the AddInProcess class.

重载

AddInProcess()

初始化 AddInProcess 类的新实例。Initializes a new instance of the AddInProcess class.

AddInProcess(Platform)

初始化 AddInProcess 类的新实例,并指定运行外接程序的进程的每字位数。Initializes a new instance of the AddInProcess class, specifying the bits-per-word of the process in which the add-in runs.

AddInProcess()

初始化 AddInProcess 类的新实例。Initializes a new instance of the AddInProcess class.

public:
 AddInProcess();
[System.Security.SecurityCritical]
public AddInProcess ();
Public Sub New ()
属性

注解

此构造函数具有与使用 AddInProcess(Platform) 带有标志的构造函数相同的效果 Platform.Host ,用于指定运行外接程序的进程将与宿主进程具有相同的每字位数。This constructor has the same effect as using the AddInProcess(Platform) constructor with the Platform.Host flag, to specify that the process that runs the add-in will have the same bits-per-word as the host process.

适用于

AddInProcess(Platform)

初始化 AddInProcess 类的新实例,并指定运行外接程序的进程的每字位数。Initializes a new instance of the AddInProcess class, specifying the bits-per-word of the process in which the add-in runs.

public:
 AddInProcess(System::AddIn::Hosting::Platform platform);
[System.Security.SecurityCritical]
public AddInProcess (System.AddIn.Hosting.Platform platform);
[<System.Security.SecurityCritical>]
new System.AddIn.Hosting.AddInProcess : System.AddIn.Hosting.Platform -> System.AddIn.Hosting.AddInProcess
Public Sub New (platform As Platform)

参数

platform
Platform

一个值,该值指定运行外接程序的进程的每字位数。A value that specifies the bits-per-word of the process that runs the add-in.

属性

例外

缺少可执行文件(AddInProcess.exe 或 AddInProcess32.exe)路径的注册表项。The registry entry for the path to the executable (AddInProcess.exe or AddInProcess32.exe) is missing.

- 或 --or-

可执行文件丢失。The executable is missing.

注解

下表显示了如何 platform 影响不同操作系统上的进程的每字位数:The following table shows how platform 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 the host process
AnyCPUAnyCPU 32 位32-bit 64 位64-bit
X86X86 32 位32-bit 32 位32-bit
X64X64 引发异常Exception is thrown 64 位64-bit

适用于