Dela via


RibbonDialogLauncher.Dispose Method (2007 System)

Releases all resources used by the RibbonDialogLauncher.

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 RibbonDialogLauncher

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()

Implements

IDisposable.Dispose()

Remarks

Call Dispose when you are finished using the RibbonDialogLauncher. The Dispose method leaves the RibbonDialogLauncher in an unusable state. After calling Dispose, you must release all references to the RibbonDialogLauncher so the garbage collector can reclaim the memory that the RibbonDialogLauncher 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 RibbonDialogLauncher. Otherwise, the resources it is using will not be freed until the garbage collector calls the RibbonDialogLauncher object's Finalize method.

.NET Framework Security

See Also

Reference

RibbonDialogLauncher Class

RibbonDialogLauncher Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview