Export (0) Print
Expand All

ReaderWriterLockSlim Methods

The ReaderWriterLockSlim type exposes the following members.

  Name Description
Public method Dispose Releases all resources used by the current instance of the ReaderWriterLockSlim class.
Public method EnterReadLock Tries to enter the lock in read mode.
Public method EnterUpgradeableReadLock Tries to enter the lock in upgradeable mode.
Public method EnterWriteLock Tries to enter the lock in write mode.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method ExitReadLock Reduces the recursion count for read mode, and exits read mode if the resulting count is 0 (zero).
Public method ExitUpgradeableReadLock Reduces the recursion count for upgradeable mode, and exits upgradeable mode if the resulting count is 0 (zero).
Public method ExitWriteLock Reduces the recursion count for write mode, and exits write mode if the resulting count is 0 (zero).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryEnterReadLock(Int32) Tries to enter the lock in read mode, with an optional integer time-out.
Public method TryEnterReadLock(TimeSpan) Tries to enter the lock in read mode, with an optional time-out.
Public method TryEnterUpgradeableReadLock(Int32) Tries to enter the lock in upgradeable mode, with an optional time-out.
Public method TryEnterUpgradeableReadLock(TimeSpan) Tries to enter the lock in upgradeable mode, with an optional time-out.
Public method TryEnterWriteLock(Int32) Tries to enter the lock in write mode, with an optional time-out.
Public method TryEnterWriteLock(TimeSpan) Tries to enter the lock in write mode, with an optional time-out.
Top
Show:
© 2014 Microsoft