AddInController.Shutdown Method ()
Disables an add-in.
Assembly: System.AddIn (in System.AddIn.dll)
This method breaks the communication pipeline between an add-in and its host. If the add-in was activated in an automatically generated application domain by using the Activate<T>(AddInSecurityLevel) or Activate<T>(PermissionSet) methods, the method also unloads the application domain.
If the add-in was loaded into its own application domain, themethod also unloads the application domain.
If the add-in was loaded into an existing application domain, the host and pipeline segments will no longer have any references to that add-in. In this case, the add-in will be eligible to be reclaimed by garbage collection.
You can also use this class to shut down an add-in that is activated in an external process.
Available since 3.5