AsyncLocal<T>.Value 屬性

定義

取得或設定環境資料的值。Gets or sets the value of the ambient data.

public:
 property T Value { T get(); void set(T value); };
public T Value { get; set; }
member this.Value : 'T with get, set
Public Property Value As T

屬性值

T

環境資料的值。The value of the ambient data. 如果未設定任何值,則傳回的值為 預設值 (T) If no value has been set, the returned value is default(T).

適用於