DataCache.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.

Namespace:   Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

NameDescription
System_CAPS_pubmethodGetAndLock(String, TimeSpan, DataCacheLockHandle)

Locks the key if the key is present and it is not locked and returns the object corresponding to the key.

System_CAPS_pubmethodGetAndLock(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.

System_CAPS_pubmethodGetAndLock(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.

System_CAPS_pubmethodGetAndLock(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.

Return to top
Show: