CustomTaskPaneCollection.Dispose Method (2007 System)
This API supports the Visual Studio Tools for Office infrastructure and is not intended to be used directly from your code.
Releases all resources used by the CustomTaskPaneCollection.
Namespace: Microsoft.Office.Tools
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Sub Dispose
'Usage
Dim instance As CustomTaskPaneCollection
instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()
Implements
Remarks
Do not call the Dispose method on the CustomTaskPaneCollection in your add-in project (that is, the CustomTaskPanes field of the ThisAddIn class). Otherwise, you will not be able to create custom task panes. For more information about the ThisAddIn class, see Getting Started Programming Application-Level Add-Ins and AddIn Host Item.
.NET Framework Security
- 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.
See Also
Reference
CustomTaskPaneCollection Class