Gets or sets a value indicating whether or not this thread is a background thread.
[Visual Basic] Public Property IsBackground As Boolean [C#] public bool IsBackground {get; set;} [C++] public: __property bool get_IsBackground(); public: __property void set_IsBackground(bool); [JScript] public function get IsBackground() : Boolean; public function set IsBackground(Boolean);
true if this thread is (or is to become) a background thread; otherwise, false.
Exception Type | Condition |
---|---|
ThreadStateException | The thread has not been started, is dead, or is not in the suspended state. |
Background threads are not affected when the execution engine shuts down.