Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft