Επεξεργασία

Κοινή χρήση μέσω


OnChangedCallback Delegate

Definition

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

public delegate void OnChangedCallback(System::Object ^ state);
public delegate void OnChangedCallback(object state);
type OnChangedCallback = delegate of obj -> unit
Public Delegate Sub OnChangedCallback(state As Object)

Parameters

state
Object

The state of the dependent object that was changed.

Remarks

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.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

See also