VTimeZoneCollectionAcquireWriterLock Method

This can be used to acquire a writer lock on the collection to perform bulk updates

Definition

Namespace: EWSoftware.PDI.Objects
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public void AcquireWriterLock(
	int timeout
)

Parameters

timeout  Int32
The timeout in milliseconds after which the lock attempt will fail

Remarks

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.

Exceptions

TimeoutExceptionThis is thrown if the timeout expires before acquiring the lock

See Also