SALES: 1-800-867-1380

GetAndLock Method

Lock the key if key is present and it is not locked by any clients and returns the object corresponding to the key.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method GetAndLock(String, TimeSpan, DataCacheLockHandle%) Locks the key if the key is present and it is not locked and returns the object corresponding to the key.
Public method GetAndLock(String, TimeSpan, DataCacheLockHandle%, Boolean) Lock the key if key is present and it is not locked by any clients and returns the object corresponding to the key.
Public method GetAndLock(String, TimeSpan, DataCacheLockHandle%, String) Locks the key if the key is present and is not locked and returns the object corresponding to the key. For objects stored in regions. This overload is not supported in Windows Azure Shared Caching.
Public method GetAndLock(String, TimeSpan, DataCacheLockHandle%, String, Boolean) Lock the key if key is present and it is not locked by any clients and returns the object corresponding to the key. For objects stored in regions. This overload is not supported in Windows Azure Shared Caching.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft