CustomTaskPane.Dispose Method (2003 System, Obsolete)
Releases all resources used by the CustomTaskPane.
Namespace: Microsoft.Office.Tools
Assembly: Microsoft.Office.Tools.Common2007 (in Microsoft.Office.Tools.Common2007.dll)
Syntax
'Declaration
Public Sub Dispose
'Usage
Dim instance As CustomTaskPane
instance.Dispose()
public void Dispose()
Implements
Remarks
Call Dispose when you are finished using the CustomTaskPane. The Dispose method leaves the CustomTaskPane in an unusable state. After calling Dispose, 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.
Note
Always call Dispose before you release your last reference to the CustomTaskPane. Otherwise, the resources it is using will not be freed until the garbage collector calls the CustomTaskPane object's Finalize method.
Permissions
- 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.