Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ReaderWriterLockSlim::IsUpgradeableReadLockHeld Property

 

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)

public:
property bool IsUpgradeableReadLockHeld {
	bool get();
}

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.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft