DataCacheLockHandle Class

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

The structure used as a key to lock and unlock cached objects in a pessimistic concurency scenario.

Namespace: Microsoft.Data.Caching
Assembly: CacheBaseLibrary (in cachebaselibrary.dll)

Syntax

'Declaration
<DataContractAttribute(Name:="DataCacheLockHandle", Namespace:="https://schemas.microsoft.com/velocity/namespace")> _
Public Class DataCacheLockHandle
'Usage
Dim instance As 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.Data.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.

See Also

Reference

DataCacheLockHandle Members
Microsoft.Data.Caching Namespace