ChangeMonitor::Dispose Method
Releases all resources used by the current instance of the ChangeMonitor class.
Assembly: System.Runtime.Caching (in System.Runtime.Caching.dll)
| Name | Description | |
|---|---|---|
![]() | Dispose() | Releases all resources that are used by the current instance of the ChangeMonitor class. |
![]() | Dispose(Boolean) | Releases all managed and unmanaged resources and any references to the ChangeMonitor instance. This overload must be implemented by derived change-monitor classes. |
The Dispose method is used to release the ChangeMonitor instance and related resources. The public Dispose method is invoked to coordinate the disposal process with key life-cycle events of derived change-monitor classes (such as initialization), and to release the ChangeMonitor instance so that the instance can be garbage collected. The Dispose method is implemented by derived change-monitor classes to dispose of their managed and unmanaged resources.

