VTime Zone CollectionAcquire Writer Lock 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: 2025.1.9.0
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public void AcquireWriterLock(
int timeout
)VB
Public Sub AcquireWriterLock (
timeout As Integer
)C++
public:
void AcquireWriterLock(
int timeout
)F#
member AcquireWriterLock :
timeout : int -> unit 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
| TimeoutException | This is thrown if the timeout expires before acquiring the lock |