PollingFileChangeToken.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.
Inscrit un rappel qui sera appelé lorsque le jeton change, le cas échéant ActiveChangeCallbackstrue.
Si ActiveChangeCallbacks c’est falsele cas, aucun rappel n’est inscrit et un jetable vide est retourné.
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
Rappel à appeler. Ce paramètre est ignoré lorsque ActiveChangeCallbacks c’est false.
- state
- Object
État à passer à callback. Ce paramètre est ignoré lorsque ActiveChangeCallbacks c’est false.
Retours
Objet jetable qui n’ops est supprimé.