編輯

共用方式為


ThreadLocal<T>.IsValueCreated Property

Definition

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

Property Value

true if Value is initialized on the current thread; otherwise false.

Exceptions

The ThreadLocal<T> instance has been disposed.

Applies to

See also