ThreadLocal<T> Constructor

.NET Framework (current version)
 

Initializes a ThreadLocal<T> instance.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodThreadLocal<T>()

Initializes the ThreadLocal<T> instance.

System_CAPS_pubmethodThreadLocal<T>(Boolean)

Initializes the ThreadLocal<T> instance and specifies whether all values are accessible from any thread.

System_CAPS_pubmethodThreadLocal<T>(Func<T>^)

Initializes the ThreadLocal<T> instance with the specified valueFactory function.

System_CAPS_pubmethodThreadLocal<T>(Func<T>^, Boolean)

Initializes the ThreadLocal<T> instance with the specified valueFactory function and a flag that indicates whether all values are accessible from any thread.

Return to top
Show: