Share via


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)

Inheritance Hierarchy

System.Object
  Microsoft.ApplicationServer.Caching.DataCacheLockHandle

Syntax

[DataContractAttribute(Name = "DataCacheLockHandle", Namespace = "https://schemas.microsoft.com/velocity/namespace")]
public class DataCacheLockHandle
[DataContractAttribute(Name = "DataCacheLockHandle", Namespace = "https://schemas.microsoft.com/velocity/namespace")]
public ref class DataCacheLockHandle 
[<DataContractAttribute(Name = "DataCacheLockHandle", Namespace = "https://schemas.microsoft.com/velocity/namespace")>]
type DataCacheLockHandle = class end
<DataContractAttribute(Name := "DataCacheLockHandle", Namespace := "https://schemas.microsoft.com/velocity/namespace")>
Public Class DataCacheLockHandle

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

Returns the specified object to string.(Overrides Object.ToString().)

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.

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

Microsoft.ApplicationServer.Caching Namespace

Return to top