AsyncLocal<T> Constructor (Action<AsyncLocalValueChangedArgs<T>>^)

.NET Framework (current version)
 

Instantiates an AsyncLocal<T> local instance that receives change notifications.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

public:
[SecurityCriticalAttribute]
AsyncLocal(
	Action<AsyncLocalValueChangedArgs<T>>^ valueChangedHandler
)

Parameters

valueChangedHandler
Type: System::Action<AsyncLocalValueChangedArgs<T>>^

The delegate that is called whenever the current value changes on any thread.

The delegate's signature is Action<ASyncLocalValueChangedArgs<T>.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6
Return to top
Show: