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)

Overload List

Name Description
System_CAPS_pubmethod 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.

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

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

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

See Also

DataCache Class
Microsoft.ApplicationServer.Caching Namespace

Return to top