IsHeld Property
Collapse the table of content
Expand the table of content

SpinLock.IsHeld Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets whether the lock is currently held by any thread.

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

public bool IsHeld { get; }

Property Value

Type: System.Boolean
true if the lock is currently held by any thread; otherwise false.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft