AddInProcess Class
Provides an external process for hosting add-ins.
Assembly: System.AddIn (in System.AddIn.dll)
To activate an add-in in an external process, pass an AddInProcess object to the appropriate AddInToken.Activate(Of T)(AddInProcess, PermissionSet) method overload.
The hosting executable is obtained from one of two files installed with the .NET Framework under the Windows directory. If the host application is running in a 64-bit process, AddInProcess.exe is run; otherwise, AddInProcess32.exe is run. This process always runs with the same bit process as its host.
The following example activates an add-in in an external process.
' Create an external process. Dim pExternal As New AddInProcess() ' Activate an add-in in the external process ' with a full trust security level. Dim CalcAddIn4 As Calculator = _ selectedToken.Activate(Of Calculator)(pExternal, _ AddInSecurityLevel.FullTrust) ' Show that the add-in is an an external process ' by verifying that it is not in the current (host's) process. Dim AddinCtl As AddInController = AddInController.GetAddInController(CalcAddIn4) Console.WriteLine("Add-in in host's process: {0}", _ AddinCtl.AddInEnvironment.Process.IsCurrentProcess)
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.