Acquires a lock on a named resource.

Namespace:  Telerik.Reporting.Cache.Interfaces
Assembly:  Telerik.Reporting (in Telerik.Reporting.dll) Version: 12.2.18.1212 (12.2.18.1212)

Syntax

IDisposable AcquireLock(
	string key
)

Parameters

key
Type: SystemString
The name of the lock. When a lock with particular key is acquired, a subsequent call on AcuireLock with the same key should wait until the original lock is released (disposed).

Return Value

Type: IDisposable
A disposable lock object. When disposed from the lock object owner, the lock of the used key is released.

Remarks

Acquires a lock on a named resource and returns a disposable lock object. When the lock object owner disposes it, the lock is released.

Version Information

Supported in: 1.0.1

See Also

In this article
Not finding the help you need?