Gets a value that indicates that the state that is monitored by the ChangeMonitor class has changed.
Assembly: System.Runtime.Caching (in System.Runtime.Caching.dll)
You can check the value of this property in a derived ChangeMonitor class to see whether a dependency has changed.
The value is set to true when a dependency change occurs (that is, when the OnChanged method is called). After the OnChanged method is called by the derived class, the value of the property will be true, regardless of whether a OnChangedCallback instance has been notified by a call to the NotifyOnChanged method.
Callers can check the property to see whether a dependency has changed. However, in a multi-threaded environment, a simpler and more maintainable approach is to insert data into a cache implementation without checking the property. Cache implementations must check the property for you and must not perform an insert or set operation if one or more associated dependencies have already changed.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2