語言

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

屬性值

A SafeFileHandle 作為子程序的標準錯誤處理,或 null 使用預設行為。

備註

把手不一定要是可繼承的;執行時會將該位址複製為可繼承的。

可建立 CreateAnonymousPipe 一對連接的管線柄、 OpenHandle 開啟檔案柄、 OpenNullHandle 捨棄錯誤輸出,或 OpenStandardErrorHandle 繼承父節點的標準誤差。

當此性質為且nullRedirectStandardError為 時false,過程通常繼承父程序的標準誤。 然而,若 StartDetached 是 或 true 程序以 開始 StartAndForget(ProcessStartInfo),標準誤會被導向至 null 裝置。

建議在開始處理後立即丟棄把手。

當此性質不 null成立時, RedirectStandardError 且 UseShellExecute 兩者皆為 false。

適用於