TryEnter Method

Task Parallel System.Threading

Overload List

  NameDescription
TryEnter(Boolean%)
Attempts to acquire the lock in a reliable manner, such that even if an exception occurs within the method call, lockTaken can be examined reliably to determine whether the lock was acquired.
TryEnter(Int32, Boolean%)
Attempts to acquire the lock in a reliable manner, such that even if an exception occurs within the method call, lockTaken can be examined reliably to determine whether the lock was acquired.
TryEnter(TimeSpan, Boolean%)
Attempts to acquire the lock in a reliable manner, such that even if an exception occurs within the method call, lockTaken can be examined reliably to determine whether the lock was acquired.

See Also