RibbonManager.Dispose Method (2007 System)
Releases all resources used by the RibbonManager.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Sub Dispose
'Usage
Dim instance As RibbonManager
instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()
Implements
Remarks
You should not call this method directly in your own code. When you create a new RibbonManager object in the CreateRibbonExtensibilityObject method of the ThisAddIn, ThisWorkbook, or ThisDocument class, the Visual Studio Tools for Office run time calls the Dispose method when it is finished using the RibbonManager object.
You can override the CreateRibbonExtensibilityObject method if you have multiple Ribbons in your project, and you want to specify which one is displayed at run time. For more information, see Ribbon Overview.
.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.