다음을 통해 공유


DialogContainerWithToolbar.Dispose Method (Boolean)

Explicitly called to release resources.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Protected Overrides Sub Dispose ( _
    disposing As Boolean _
)
protected override void Dispose(
    bool disposing
)
protected:
virtual void Dispose(
    bool disposing
) override
abstract Dispose : 
        disposing:bool -> unit  
override Dispose : 
        disposing:bool -> unit
protected override function Dispose(
    disposing : boolean
)

Parameters

  • disposing
    Type: Boolean

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

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

.NET Framework Security

See Also

Reference

DialogContainerWithToolbar Class

Dispose Overload

Microsoft.VisualStudio.Shell Namespace