ApplicationPoolFailure.OrphanWorkerProcess Property

Definition

Gets or sets a value indicating whether to put a worker process in an orphan state when an application pool fails.

public:
 property bool OrphanWorkerProcess { bool get(); void set(bool value); };
public bool OrphanWorkerProcess { get; set; }
member this.OrphanWorkerProcess : bool with get, set
Public Property OrphanWorkerProcess As Boolean

Property Value

true if the worker process is orphaned when an application pool fails; false if the worker process is not orphaned.

Examples

The following example displays the value of the OrphanWorkerProcess property. This code example is part of a larger example provided for the ApplicationPoolFailure class.

Console.WriteLine("OrphanWorkerProcess:\t{0}",
    manager.ApplicationPoolDefaults.Failure.OrphanWorkerProcess);

Remarks

This property specifies whether to assign a worker process to an orphan state instead of terminating it when an application pool fails.

Applies to