Share via


ProjectDocumentsListener.Dispose Method

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

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()
abstract Dispose : unit -> unit 
override Dispose : unit -> unit 

Implements

IDisposable.Dispose()

Remarks

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

.NET Framework Security

See Also

Reference

ProjectDocumentsListener Class

ProjectDocumentsListener Members

Dispose Overload

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