Share via


SolutionListener.Dispose Method

Releases all resources used by the current instance of the SolutionListener 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 SolutionListener

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

.NET Framework Security

See Also

Reference

SolutionListener Class

SolutionListener Members

Dispose Overload

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