IChangeToken.RegisterChangeCallback(Action<Object>, Object) Method

Definition

Registers for a callback that will be invoked when the entry has changed. HasChanged MUST be set before the callback is invoked.

public:
 IDisposable ^ RegisterChangeCallback(Action<System::Object ^> ^ callback, System::Object ^ state);
public IDisposable RegisterChangeCallback (Action<object> callback, object state);
public IDisposable RegisterChangeCallback (Action<object?> callback, object? state);
abstract member RegisterChangeCallback : Action<obj> * obj -> IDisposable
Public Function RegisterChangeCallback (callback As Action(Of Object), state As Object) As IDisposable

Parameters

callback
Action<Object>

The Action<T> to invoke.

state
Object

State to be passed into the callback.

Returns

An IDisposable that is used to unregister the callback.

Applies to