CustomTaskPaneCollection.Remove Method (CustomTaskPane)
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
customTaskPane is null.
The M:Microsoft.Office.Tools.CustomTaskPaneCollection.Dispose method has already been called on the CustomTaskPaneCollection.
The Visual Studio Tools for Office runtime automatically cleans up resources used by the custom task pane when the add-in is unloaded. Do not call the ThisAddIn_Shutdown event handler in your project. This method will throw an ObjectDisposedException, because the Visual Studio Tools for Office runtime cleans up resources used by the CustomTaskPane object before ThisAddIn_Shutdown is called.method in the