Is Entered(Object) Method
Determines whether the current thread holds the lock on the specified object.
public: static bool IsEntered(System::Object ^ obj);
public static bool IsEntered (object obj);
static member IsEntered : obj -> bool
Public Shared Function IsEntered (obj As Object) As Boolean
The object to test.
true if the current thread holds the lock on
This method works only for locks that are acquired by using the methods of the Monitor class, or by using the C#
lock statement or the Visual Basic
SyncLock statement, which are implemented with Monitor.