다음을 통해 공유


DialogPage.Dispose Method (Boolean)

Releases the unmanaged resources that are used by a dialog page class and optionally releases the managed resources; the parent class, Component supports unmanaged resources.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
Protected Overrides Sub Dispose ( _
    disposing As Boolean _
)
‘사용 방법
Dim disposing As Boolean

Me.Dispose(disposing)
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: System.Boolean
    true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

When the disposing parameter is true, this method releases all resources that are held by the managed objects that an instance of a given dialog page class references.

After operating on DialogPage, the implementation calls Dispose on its base class.

참고

A Dispose method can be called multiple times by other objects. When you override Dispose, be careful not to reference objects that have been previously disposed of in an earlier call. For more information about how to implement Dispose, see Implementing a Dispose Method.

.NET Framework Security

See Also

Reference

DialogPage Class

DialogPage Members

Dispose Overload

Microsoft.VisualStudio.Shell Namespace

Component

DialogPage

Other Resources

Implementing a Dispose Method

Options Pages

Toolbox (Visual Studio SDK)

State Persistence and the Visual Studio IDE