TechTalk Genome v4.2

OptimisticLockingSemantics.GetClientVersion Method (Object)

Gets the client side optimistic lock version for the specified object from the current context.

public static IOptimisticLockVersion GetClientVersion(
   object o
);

Parameters

o
The object for which the client side version should be retreived.

Return Value

The client side optimistic lock version of the object if the object is locked in the current context (Context.Current), a null reference otherwise.

Remarks

Use this method to get the client side version for an object to use later as a reference version when calling Context.Lock or Context.TryLock passing an OptimisticLockArgs instance.

Requirements

Namespace: TechTalk.Genome.Locking

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.4.4

Editions: Professional, Evaluation, Express

See Also

OptimisticLockingSemantics Class | TechTalk.Genome.Locking Namespace | OptimisticLockingSemantics.GetClientVersion Overload List