Monitor.IsEntered Method (Object)
Determines whether the current thread holds the lock on the specified object.
Assembly: mscorlib (in mscorlib.dll)
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.
Available since 8
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Available since 8.1