Share via


SelectionListener.Dispose Method

Releases all resources used by the current instance of the SelectionListener class.

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Project.MPF
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As SelectionListener

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

.NET Framework Security

See Also

Reference

SelectionListener Class

SelectionListener Members

Dispose Overload

Microsoft.VisualStudio.Data.Schema.Project.Project.MPF Namespace