Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Project.MPF Namespace