CompositeChangeToken.RegisterChangeCallback 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 soit appelé.

public:
 virtual 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
override this.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.

Implémente

S’applique à