Language

ProcessStartInfo.StandardErrorHandle プロパティ

定義

子プロセスの標準エラーとして使用する SafeFileHandle を取得または設定します。

public:
 property Microsoft::Win32::SafeHandles::SafeFileHandle ^ StandardErrorHandle { Microsoft::Win32::SafeHandles::SafeFileHandle ^ get(); void set(Microsoft::Win32::SafeHandles::SafeFileHandle ^ value); };
public Microsoft.Win32.SafeHandles.SafeFileHandle? StandardErrorHandle { get; set; }
member this.StandardErrorHandle : Microsoft.Win32.SafeHandles.SafeFileHandle with get, set
Public Property StandardErrorHandle As SafeFileHandle

プロパティ値

子プロセスの標準エラー ハンドルとして使用する SafeFileHandle 、または既定の動作を使用する null 。

注釈

ハンドルは継承可能である必要はありません。ランタイムは、必要に応じて継承可能として複製します。

CreateAnonymousPipeを使用して、接続されたパイプ ハンドルのペアを作成したり、ファイル ハンドルを開いたり、エラー出力を破棄OpenNullHandleOpenHandleしたり、親の標準エラーを継承するOpenStandardErrorHandleを作成したりします。

このプロパティが null され、 RedirectStandardError が falseされている場合、プロセスは通常、親の標準エラーを継承します。 ただし、 StartDetached が true されている場合、またはプロセスが StartAndForget(ProcessStartInfo)で開始された場合、代わりに標準エラーが null デバイスにリダイレクトされます。

プロセスを開始した直後にハンドルを破棄することをお勧めします。

このプロパティが nullされていない場合は、 RedirectStandardError と UseShellExecute の両方を falseする必要があります。

適用対象