This topic has not yet been rated - Rate this topic

OnChangedCallback Delegate

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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)

public delegate void OnChangedCallback(
	Object state
)

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.5, 4

Windows 8 Release Preview, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 SP2, Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)