DataCacheLockHandle Class

Represents the structure used as a key to lock and unlock cached objects in a pessimistic concurrency scenario.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Core (in microsoft.applicationserver.caching.core.dll)

Usage

'Usage
Dim instance As DataCacheLockHandle

Syntax

'Declaration
<DataContractAttribute(Name:="DataCacheLockHandle", Namespace:="https://schemas.microsoft.com/velocity/namespace")> _
Public Class DataCacheLockHandle
[DataContractAttribute(Name="DataCacheLockHandle", Namespace="https://schemas.microsoft.com/velocity/namespace")] 
public class DataCacheLockHandle
[DataContractAttribute(Name=L"DataCacheLockHandle", Namespace=L"https://schemas.microsoft.com/velocity/namespace")] 
public ref class DataCacheLockHandle
/** @attribute DataContractAttribute(Name="DataCacheLockHandle", Namespace="https://schemas.microsoft.com/velocity/namespace") */ 
public class DataCacheLockHandle
DataContractAttribute(Name="DataCacheLockHandle", Namespace="https://schemas.microsoft.com/velocity/namespace") 
public class DataCacheLockHandle

Remarks

In order for an object to be unlocked, the appropriate DataCacheLockHandle must be provided to the unlocking methods (for example, PutAndUnlock and Unlock). The DataCacheLockHandle is provided by the locking method, GetAndLock. For more information about concurrency, see Concurrency Models (Velocity) and Concurrency Methods (Velocity).

Inheritance Hierarchy

System.Object
  Microsoft.ApplicationServer.Caching.DataCacheLockHandle

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

See Also

Reference

DataCacheLockHandle Members
Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26