Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Values Property
Collapse the table of content
Expand the table of content

ThreadLocal<T>.Values Property

.NET Framework 4.6 and 4.5

Gets a list for all of the values currently stored by all of the threads that have accessed this instance.

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

public IList<T> Values { get; }

Property Value

Type: System.Collections.Generic.IList<T>
A list for all of the values currently stored by all of the threads that have accessed this instance.

ExceptionCondition
ObjectDisposedException

The ThreadLocal<T> instance has been disposed.

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Show:
© 2015 Microsoft