IChangeToken.RegisterChangeCallback(Action<Object>, Object) 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 l’appel du rappel.
public:
IDisposable ^ RegisterChangeCallback(Action<System::Object ^> ^ callback, System::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
- state
- Object
État à passer dans le rappel.
Retours
Utilisé IDisposable pour annuler l’inscription du rappel.