DataCache.Unlock Method (String, DataCacheLockHandle, String)

 

Releases objects locked in the specified region. This method supports pessimistic concurrency by making sure that the appropriate DataCacheLockHandle is used for unlocking the object. This overload is not supported in Windows Azure Shared Caching.

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

Syntax

public void Unlock(
    string key,
    DataCacheLockHandle lockHandle,
    string region
)
public:
void Unlock(
    String^ key,
    DataCacheLockHandle^ lockHandle,
    String^ region
)
member Unlock : 
        key:string *
        lockHandle:DataCacheLockHandle *
        region:string -> unit
Public Sub Unlock (
    key As String,
    lockHandle As DataCacheLockHandle,
    region As String
)

Parameters

  • key
    Type: System.String

    The unique value that is used to identify the object in the region.

  • region
    Type: System.String

    The name of the region where the object resides.

Remarks

The lockHandle parameter is required and must match the DataCacheLockHandle of the locked object to succeed.

Locked objects are never expired, but they may expire immediately if unlocked after their expiration time.

See Also

Unlock Overload
DataCache Class
Microsoft.ApplicationServer.Caching Namespace

Return to top