Try Microsoft Edge A fast and secure browser that's designed for Windows 10 No thanks Get started
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets whether the lock is held by the current thread.
'Declaration Public ReadOnly Property IsHeldByCurrentThread As Boolean
Thread ownership tracking is disabled.
If the lock was initialized to track owner threads, this will return whether the lock is acquired by the current thread. It is invalid to use this property when the lock was initialized to not track thread ownership.