Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

OnChangedCallback Delegate

.NET Framework 4.6 and 4.5

Defines a reference to a method that handles changes to monitored items.

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

type OnChangedCallback = 
    delegate of  
        state:Object -> unit

Parameters

state
Type: System.Object

The state of the dependent object that was changed.

The OnChangedCallback delegate is used by a change monitor to signal to a cache implementation that a change has occurred in an object whose contents are cached. The task of any implementation of the ChangeMonitor type is to monitor for changes in objects that are cached. For example, if the contents of a file are contained in a cache entry, and if the file is updated, its related cache entry must be changed also. In a typical cache implementation, a derived ChangeMonitor instance uses a OnChangedCallback delegate to notify the cache about a change.

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft