Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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: System.Data.Caching
Assembly: CacheBaseLibrary (in cachebaselibrary.dll)
Syntax
'Declaration
<DataContractAttribute(Name:="LockHandle", Namespace:="https://schemas.microsoft.com/velocity/namespace")> _
Public Structure LockHandle
'Usage
Dim instance As LockHandle
[DataContractAttribute(Name="LockHandle", Namespace="https://schemas.microsoft.com/velocity/namespace")]
public struct LockHandle
[DataContractAttribute(Name=L"LockHandle", Namespace=L"https://schemas.microsoft.com/velocity/namespace")]
public value class LockHandle
/** @attribute DataContractAttribute(Name="LockHandle", Namespace="https://schemas.microsoft.com/velocity/namespace") */
public final class LockHandle extends ValueType
JScript suports the use of structures, but not the declaration of new ones.
Remarks
In order for an object to be unlocked, the appropriate LockHandle must be provided to the unlocking methods (for example, PutAndUnlock and Unlock). The LockHandle is provided by the locking method, GetAndLock. For more information about concurrency, see Concurrency Models (Velocity) and Concurrency Methods (Velocity).
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.