語言

ProcessStartInfo.StandardInputHandle 屬性

定義

取得或設定 作為 SafeFileHandle 子程序的標準輸入。

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

屬性值

A SafeFileHandle 作為子程序的標準輸入代號,或 null 使用預設行為。

備註

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

用 CreateAnonymousPipe 來建立一對連接的管線柄、 OpenHandle 開啟檔案柄、 OpenNullHandle 提供空輸入,或 OpenStandardInputHandle 繼承父節點的標準輸入。

當此性質為nullRedirectStandardInput且為 false時,程序通常繼承父程序的標準輸入。 然而,如果 StartDetached 是 true 或程序以 開始 StartAndForget(ProcessStartInfo),標準輸入會被重新導向空裝置。

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

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

適用於