Export (0) Print
Expand All

ThreadLocal<T>.Dispose Method (Boolean)

.NET Framework 4.6 and 4.5

Releases the resources used by this ThreadLocal<T> instance.

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

protected virtual void Dispose(
	bool disposing
)

Parameters

disposing
Type: System.Boolean

A Boolean value that indicates whether this method is being called due to a call to Dispose.

Unlike most of the members of ThreadLocal<T>, this method is not thread-safe.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

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