CancellationChangeToken.RegisterChangeCallback Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
S’inscrit à un rappel qui sera appelé lorsque l’entrée a changé. 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);
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
- state
- Object
État à passer dans le rappel.
Retours
Utilisé IDisposable pour annuler l’inscription du rappel.