Attempts to lock a persistent object in this Context.
Attempts to lock the specified object using the specified locking semantics and the specified lock arguments .
public bool TryLock(object,ILockingSemantics,LockArgs);
Attempts to lock the specified object using the locking semantics configured for the type of the object in this Context and the specified lock arguments.
public bool TryLock(object,LockArgs);