Sdílet prostřednictvím


Thread.IsInterrupted Property

Definition

Tests whether this thread has been interrupted.

public virtual bool IsInterrupted { [Android.Runtime.Register("isInterrupted", "()Z", "GetIsInterruptedHandler")] get; }
[<get: Android.Runtime.Register("isInterrupted", "()Z", "GetIsInterruptedHandler")>]
member this.IsInterrupted : bool

Property Value

true if this thread has been interrupted; false otherwise.

Attributes

Remarks

Tests whether this thread has been interrupted. The interrupted status of the thread is unaffected by this method.

A thread interruption ignored because a thread was not alive at the time of the interrupt will be reflected by this method returning false.

Java documentation for java.lang.Thread.isInterrupted().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also