IChangeToken.RegisterChangeCallback(Action<Object>, Object) Méthode

Définition

S’inscrit pour un rappel qui sera appelé lors de la modification de l’entrée. HasChanged DOIT être défini avant que le rappel ne soit appelé.

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

Paramètres

callback
Action<Object>

Action<T> à appeler.

state
Object

État à passer au rappel.

Retours

IDisposable qui peut être utilisé pour désinscrire le rappel.

S’applique à