Dispose Method
Collapse the table of content
Expand the table of content

ChangeMonitor.Dispose Method

.NET Framework (current version)
 

Releases all resources used by the current instance of the ChangeMonitor class.

Namespace:   System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources that are used by the current instance of the ChangeMonitor class.

System_CAPS_protmethodDispose(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.

Return to top
Show:
© 2016 Microsoft