This documentation is archived and is not being maintained.
.NET Framework 2.0
Defines a lock that supports single writers and multiple readers.
The following tables list the members exposed by the ReaderWriterLock type.
|AcquireReaderLock||Overloaded. Acquires a reader lock.|
|AcquireWriterLock||Overloaded. Acquires the writer lock.|
|AnyWritersSince||Indicates whether the writer lock has been granted to any thread since the sequence number was obtained.|
|DowngradeFromWriterLock||Restores the lock status of the thread to what it was before UpgradeToWriterLock was called.|
|Equals||Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (Inherited from Object.)|
|ReleaseLock||Releases the lock, regardless of the number of times the thread acquired the lock.|
|ReleaseReaderLock||Decrements the lock count.|
|ReleaseWriterLock||Decrements the lock count on the writer lock.|
|RestoreLock||Restores the lock status of the thread to what it was before calling ReleaseLock.|
|ToString||Returns a String that represents the current Object. (Inherited from Object.)|
|UpgradeToWriterLock||Overloaded. Upgrades a reader lock to the writer lock.|