Method Lock
Lock(TimeSpan)
Acquire a Lock on a collection in cache.
Declaration
bool Lock(TimeSpan timeout)
Parameters
| Type | Name | Description |
|---|---|---|
| System.TimeSpan | timeout | Duration of Lock on a collection. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True, if Lock was acquired successfully; otherwise false. |