System.Threading.ReaderWriterLockSlim: Method Members

The methods of System.Threading.ReaderWriterLockSlim are listed below. For a list of all members, see the ReaderWriterLockSlim Members list.

See Also: Inherited members from System.Object

Public Methods

Dispose()

Releases all resources used by the current instance of the System.Threading.ReaderWriterLockSlim class.

EnterReadLock()

Tries to enter the lock in read mode.

EnterUpgradeableReadLock()

Tries to enter the lock in upgradeable mode.

EnterWriteLock()

Tries to enter the lock in write mode.

ExitReadLock()

Reduces the recursion count for read mode, and exits read mode if the resulting count is 0 (zero).

ExitUpgradeableReadLock()

Reduces the recursion count for upgradeable mode, and exits upgradeable mode if the resulting count is 0 (zero).

ExitWriteLock()

Reduces the recursion count for write mode, and exits write mode if the resulting count is 0 (zero).

TryEnterReadLock(int) : bool

Tries to enter the lock in read mode, with an optional integer time-out.

TryEnterReadLock(TimeSpan) : bool

Tries to enter the lock in read mode, with an optional time-out.

TryEnterUpgradeableReadLock(int) : bool

Tries to enter the lock in upgradeable mode, with an optional time-out.

TryEnterUpgradeableReadLock(TimeSpan) : bool

Tries to enter the lock in upgradeable mode, with an optional time-out.

TryEnterWriteLock(int) : bool

Tries to enter the lock in write mode, with an optional time-out.

TryEnterWriteLock(TimeSpan) : bool

Tries to enter the lock in write mode, with an optional time-out.