SimpleMonikerResolver.Dispose Method

Include Protected Members
Include Inherited Members

Releases all resources used by the SimpleMonikerResolver.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Dispose() Releases all resources used by the SimpleMonikerResolver.
Protected method Dispose(Boolean) Disposes this moniker resolver.

Top

Remarks

Call Dispose() when you are finished using the SimpleMonikerResolver. The Dispose() method leaves the SimpleMonikerResolver in an unusable state. After calling Dispose(), you must release all references to the SimpleMonikerResolver so the garbage collector can reclaim the memory that the SimpleMonikerResolver was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

Observação

Always call Dispose() before you release your last reference to the SimpleMonikerResolver. Otherwise, the resources it is using will not be freed until the garbage collector calls the SimpleMonikerResolver object's Finalize method.

See Also

Reference

SimpleMonikerResolver Class

Microsoft.VisualStudio.Modeling Namespace