ThreadLocal<T>.IsValueCreated 屬性

定義

取得值,這個值表示 Value 是否已在目前執行緒中完成初始化。Gets whether Value is initialized on the current thread.

public:
 property bool IsValueCreated { bool get(); };
public bool IsValueCreated { get; }
member this.IsValueCreated : bool
Public ReadOnly Property IsValueCreated As Boolean

屬性值

如果已在目前執行緒上初始化 Value 則為 true,否則為 false。true if Value is initialized on the current thread; otherwise false.

例外狀況

ThreadLocal<T> 執行個體已經過處置。The ThreadLocal<T> instance has been disposed.

適用於

另請參閱