ThreadLocal(Of T).ToString Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates and returns a string representation of this instance for the current thread.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| ObjectDisposedException | The ThreadLocal(Of T) instance has been disposed. |
| NullReferenceException | The Value for the current thread is a null reference (Nothing in Visual Basic). |
| InvalidOperationException | The initialization function attempted to reference Value recursively. |
| MissingMemberException | No default constructor is provided and no value factory is supplied. |
Calling this method forces initialization for the current thread, as is the case with accessing Value directly.