Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IChangeToken.RegisterChangeCallback(Action<Object>, Object) Method
Definition
- Namespace:
- Microsoft.Extensions.Primitives
- Assembly:
- Microsoft.Extensions.Primitives.dll
- Package:
- Microsoft.Extensions.Primitives v11.0.0-preview.5.26302.115
- Source:
- IChangeToken.cs
- Source:
- IChangeToken.cs
- Source:
- IChangeToken.cs
- Source:
- IChangeToken.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers for a callback that will be invoked when the entry has changed. HasChanged MUST be set before the callback is invoked.
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
Parameters
- state
- Object
State to be passed into the callback.
Returns
An IDisposable that is used to unregister the callback.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
