ConfigurationReloadToken.RegisterChangeCallback(Action<Object>, Object) Método
Definição
Registra para um retorno de chamada que será invocado quando a entrada for alterada.Registers for a callback that will be invoked when the entry has changed. HasChanged PRECISA ser definido antes de o retorno de chamada ser invocado.HasChanged MUST be set before the callback is invoked.
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
Parâmetros
- state
- Object
Estado a ser passado para o retorno de chamada.State to be passed into the callback.
Retornos
O registro CancellationToken.The CancellationToken registration.