ReaderWriterLockSlim.TryEnterWriteLock Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Tries to enter the lock in write mode, with an optional time-out.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
TryEnterWriteLock(Int32) | Tries to enter the lock in write mode, with an optional time-out. |
|
TryEnterWriteLock(TimeSpan) | Tries to enter the lock in write mode, with an optional time-out. |
Caution: |
|---|
Do not use ReaderWriterLockSlim. It throws a MethodAccessException exception when two readers enter the lock. In most cases, use the Monitor class instead. |
Caution: