Partager via


AsyncLocal<T> Class

Definition

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.