public void AcquireWriterLock(
int timeout
)
Public Sub AcquireWriterLock (
timeout As Integer
)
public:
void AcquireWriterLock(
int timeout
)
member AcquireWriterLock :
timeout : int -> unit
Calls to this method should be paired with a call to ReleaseWriterLock 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 |