Releases all resources used by the CustomTaskPane.
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Call when you are finished using the CustomTaskPane. The method leaves the CustomTaskPane in an unusable state. After calling , you must release all references to the CustomTaskPane so the garbage collector can reclaim the memory that the CustomTaskPane was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.
Typically, you should not call the method directly in your code. Instead, when you are finished using the CustomTaskPane, call the Remove or RemoveAt method to remove it from the CustomTaskPaneCollection in your add-in. These methods call the method of the CustomTaskPane that you are removing.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.