Compartir a través de


ThreadGroup.Daemon Property

Definition

Tests if this thread group is a daemon thread group. -or- Changes the daemon status of this thread group.

public bool Daemon { [Android.Runtime.Register("isDaemon", "()Z", "")] get; [Android.Runtime.Register("setDaemon", "(Z)V", "")] set; }
[<get: Android.Runtime.Register("isDaemon", "()Z", "")>]
[<set: Android.Runtime.Register("setDaemon", "(Z)V", "")>]
member this.Daemon : bool with get, set

Property Value

true if this thread group is a daemon thread group; false otherwise.

Attributes

Remarks

Property getter documentation:

Tests if this thread group is a daemon thread group. A daemon thread group is automatically destroyed when its last thread is stopped or its last thread group is destroyed.

Added in 1.0.

Java documentation for java.lang.ThreadGroup.isDaemon().

Property setter documentation:

Changes the daemon status of this thread group.

First, the checkAccess method of this thread group is called with no arguments; this may result in a security exception.

A daemon thread group is automatically destroyed when its last thread is stopped or its last thread group is destroyed.

Added in 1.0.

Java documentation for java.lang.ThreadGroup.setDaemon(boolean).

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