AsyncLocal<T> Class
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.
Stores references such that they are available for retrieval in the same call context.
generic <typename T>
where T : classpublic ref class AsyncLocal
public class AsyncLocal<T> where T : class
type AsyncLocal<'T (requires 'T : null)> = class
Public Class AsyncLocal(Of T)
Type Parameters
- T
The type of value to store.
- Inheritance
-
AsyncLocal<T>
Constructors
AsyncLocal<T>() |
Initializes a new instance of the AsyncLocal<T> class. |
Properties
Value |
Gets or sets the value to associate with the current CallContext. |
Applies to
Thread Safety
This type is thread-safe for all members.