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 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
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
- 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