AsyncLocal<T> Constructors
Definition
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.
Instantiates an AsyncLocal<T> instance.
Overloads
AsyncLocal<T>() |
Instantiates an AsyncLocal<T> instance that does not receive change notifications. |
AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>) |
Instantiates an AsyncLocal<T> local instance that receives change notifications. |
AsyncLocal<T>()
- Source:
- AsyncLocal.cs
- Source:
- AsyncLocal.cs
- Source:
- AsyncLocal.cs
Instantiates an AsyncLocal<T> instance that does not receive change notifications.
public:
AsyncLocal();
public AsyncLocal ();
Public Sub New ()
Applies to
AsyncLocal<T>(Action<AsyncLocalValueChangedArgs<T>>)
- Source:
- AsyncLocal.cs
- Source:
- AsyncLocal.cs
- Source:
- AsyncLocal.cs
Instantiates an AsyncLocal<T> local instance that receives change notifications.
public:
AsyncLocal(Action<System::Threading::AsyncLocalValueChangedArgs<T>> ^ valueChangedHandler);
[System.Security.SecurityCritical]
public AsyncLocal (Action<System.Threading.AsyncLocalValueChangedArgs<T>> valueChangedHandler);
public AsyncLocal (Action<System.Threading.AsyncLocalValueChangedArgs<T>>? valueChangedHandler);
public AsyncLocal (Action<System.Threading.AsyncLocalValueChangedArgs<T>> valueChangedHandler);
[<System.Security.SecurityCritical>]
new System.Threading.AsyncLocal<'T> : Action<System.Threading.AsyncLocalValueChangedArgs<'T>> -> System.Threading.AsyncLocal<'T>
new System.Threading.AsyncLocal<'T> : Action<System.Threading.AsyncLocalValueChangedArgs<'T>> -> System.Threading.AsyncLocal<'T>
Public Sub New (valueChangedHandler As Action(Of AsyncLocalValueChangedArgs(Of T)))
Parameters
- valueChangedHandler
- Action<AsyncLocalValueChangedArgs<T>>
The delegate that is called whenever the current value changes on any thread.
- Attributes
Remarks
The delegate's signature is Action<AsyncLocalValueChangedArgs<T>>
.
See also
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor