AddInProcess Class
Provides an external process for running add-ins out-of-process from the host application.
Assembly: System.AddIn (in System.AddIn.dll)
The AddInProcess type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AddInProcess() | Initializes a new instance of the AddInProcess class. |
![]() | AddInProcess(Platform) | Initializes a new instance of the AddInProcess class, specifying the bits-per-word of the process in which the add-in runs. |
| Name | Description | |
|---|---|---|
![]() | IsCurrentProcess | Gets a value that indicates whether the current AddInProcess object represents the host application process. |
![]() | KeepAlive | Gets or sets a value that indicates whether to keep the external process alive. |
![]() | Platform | Gets the bits-per-word of the process in which the out-of-process add-in is run. |
![]() | ProcessId | Gets the process ID of the external process. |
![]() | StartupTimeout | Gets or sets the number of seconds to allow for the process to start. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Shutdown | Forcibly shuts down the external process. |
![]() | Start | Starts the external process. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | ShuttingDown | Occurs when the process represented by the AddInProcess object is about to be shut down. |
To activate an add-in in an external process, pass an AddInProcess object to the appropriate AddInToken::Activate<T>(AddInProcess, PermissionSet) method overload.
The executable that runs the add-in is obtained from one of two files installed with the .NET Framework under the Windows directory. By default, the executable that matches the bits-per-word of the host application is used. If the host is a 64-bit process, AddInProcess.exe is run; otherwise, AddInProcess32.exe is run. To specify the way the executable is selected, use the AddInProcess(Platform) constructor to create the AddInProcess object.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
