Used as the lockTimeout parameter in Lock method call
to disable locking expirations. This field is read-only.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
Remarks
When used, this field sets the lockTimeout parameter equal to the Zero
field, which has a constant value of zero. Then the cache item remains locked untill explicitly released.
Examples
The following example demonstrates how to use the Lock method to add an item to the
Cache object using the NoLockExpiration field.
CopyC#
Cache cache = NCache.InitializeCache("myCache"); LockHandle lockHandle = new LockHandle(); cache.Lock("DSN", Cache.NoLockExpiration, out lockHandle);