Locks or attempts to lock a persistent object in this Context.
Attempts to lock the specified object using the locking semantics configured for the type of the object in this Context .
public void Lock(object);
Attempts to lock the specified object using the specified locking semantics and the specified lock arguments .
public void Lock(object,ILockingSemantics,LockArgs);
This member is obsolete. Please use one of the other Lock overrides or TryLock instead. Attempts to lock the specified object using the specified locking semantics and the specified lock arguments . Failure is either reported in the return value or by raising LockViolationException.
public bool Lock(object,ILockingSemantics,LockArgs,bool);
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 void Lock(object,LockArgs);