Language

ProcessStartInfo.StartDetached プロパティ

定義

デタッチされた方法でプロセスを開始するかどうかを示す値を取得または設定します。

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

プロパティ値

true 親からデタッチされたプロセスを開始する場合。それ以外の場合は false。 既定値は false です。

注釈

RedirectStandardInput、RedirectStandardOutput、RedirectStandardError、StandardInputHandle、NULStandardOutputHandle、またはStandardErrorHandleを使用してユーザーによって明示的に構成されていない限り、標準の入力、出力、およびエラーが null デバイス (Windows、unix では/dev/null) にリダイレクトされた新しいデタッチされたプロセスを開始します。

Windows、プロセスは DETACHED_PROCESS フラグで開始されます。

Unix では、プロセスは新しいセッションのリーダーとして開始されます。

このプロパティは、trueに設定UseShellExecuteと共に使用することはできません。

適用対象