Dispose Method (Boolean)
Collapse the table of content
Expand the table of content

ThreadLocal<T>.Dispose Method (Boolean)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.Threading
Assembly:  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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft