This documentation is archived and is not being maintained.
ReaderWriterLockSlim. IsUpgradeableReadLockHeld Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation . ]
Gets a value that indicates whether the current thread has entered the lock in upgradeable mode.
Namespace:
System.Threading
Assembly:
System.Core (in System.Core.dll)
'Declaration
Public ReadOnly Property IsUpgradeableReadLockHeld As Boolean
Property Value Type:
System. Boolean true if the current thread has entered upgradeable mode; otherwise, false .This property is intended for use in asserts or for other debugging purposes. Do not use it to control the flow of program execution.
The following example shows how to use the IsUpgradeableReadLockHeld property to generate an assert if the current thread has entered upgradeable mode unexpectedly.
Windows Phone OS Supported in: 8.1, 8.0