LockManager Methods

Include Protected Members
Include Inherited Members

The LockManager type exposes the following members.

Methods

  Name Description
Public method AssertLockHeld(Object, LockManager.LockType, Int64) Assert that the given lock is held by the current thread (debug assert).
Public method AssertLockHeld(ILockName, LockManager.LockType, Int64) Assert that the given lock is held by the current thread (debug assert).
Public method AssertLockNotHeld(Object, LockManager.LockType, Int64) Assert that the given lock is not held by the current thread (debug assert).
Public method AssertLockNotHeld(ILockName, LockManager.LockType, Int64) Assert that the given lock is not held by the current thread (debug assert).
Public method AssertNoLocksHeld(Int64) Assert that the current thread holds no LockManager locks.
Public method AssertNoLocksHeld(LockManager.LockType, Int64) Assert that the given lock is not held by the current thread (debug assert).
Public method AssertZeroActiveLockObjects Asserts iff there are active locks in the lock manager (where refcount > 0)
Public methodStatic member CompareLockTypes Compares two lock types (throws if lock types are not comparable).
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetLock(Object, LockManager.LockType, Int64) Get a lock.
Public method GetLock(ILockName, LockManager.LockType, Int64) Get a named lock.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HasLocks Returns true if this requestId owns any locks
Public method Lock(Object, Int64) Get a leaf monitor lock for a given object.
Public method Lock(Object, LockManager.LockType, Int64) Get an object monitor lock.
Public method Lock(ILockName, LockManager.LockType, Int64) Get a named lock.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReleaseAnyLock Release the most nested lock of a given lock type and any name.
Public method ReleaseLock(Object, LockManager.LockType, Int64) Release a lock.
Public method ReleaseLock(ILockName, LockManager.LockType, Int64) Release a named lock.
Public method TestLock(Object, LockManager.LockType, Int64) Test if this thread already holds a lock.
Public method TestLock(String, LockManager.LockType, Int64) Test if this thread already holds a lock.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetLock(Object, LockManager.LockType, Int64) Try to get a lock.
Public method TryGetLock(ILockName, LockManager.LockType, Int64, Int32) Get a named lock

Top

See Also

Reference

LockManager Class

Microsoft.TeamFoundation.Framework.Server Namespace