public void AcquireReaderLock(
int timeout,
bool upgradeable = false
)
Public Sub AcquireReaderLock (
timeout As Integer,
Optional upgradeable As Boolean = false
)
public:
void AcquireReaderLock(
int timeout,
bool upgradeable = false
)
member AcquireReaderLock :
timeout : int *
?upgradeable : bool
(* Defaults:
let _upgradeable = defaultArg upgradeable false
*)
-> unit
Calls to this method should be paired with a call to ReleaseReaderLock to release the lock when done.
This is useful for access to the TimeZones collection in web applications when enumerating the collection or bulk loading time zone components. It allows multiple concurrent readers of the collection but only one writer at a time to the collection.
TimeoutException | This is thrown if the timeout expires before acquiring the lock |