You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<value>The StandardInput, StandardOutput, and StandardError handle properties cannot be used together with RedirectStandardInput, RedirectStandardOutput, and RedirectStandardError.</value>
217
+
<value>The StandardInputHandle, StandardOutputHandle, and StandardErrorHandle properties cannot be used together with RedirectStandardInput, RedirectStandardOutput, and RedirectStandardError.</value>
Copy file name to clipboardExpand all lines: src/libraries/System.Diagnostics.Process/src/System/Diagnostics/ProcessStartInfo.cs
+21-18Lines changed: 21 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -124,14 +124,15 @@ public string Arguments
124
124
/// </summary>
125
125
/// <remarks>
126
126
/// <para>
127
-
/// The handle does not need to be inheritable; the runtime will make it inheritable as needed.
127
+
/// The handle does not need to be inheritable; the runtime will duplicate it as inheritable.
128
128
/// Use <see cref="SafeFileHandle.CreateAnonymousPipe"/> to create a pair of connected pipe handles,
129
129
/// <see cref="IO.File.OpenHandle"/> to open a file handle,
130
-
/// <see cref="IO.File.OpenNullHandle"/> to discard input,
131
-
/// or <see cref="Console.OpenStandardInputHandle"/> to inherit the parent's standard input.
130
+
/// <see cref="IO.File.OpenNullHandle"/> to provide an empty input,
131
+
/// or <see cref="Console.OpenStandardInputHandle"/> to inherit the parent's standard input
132
+
/// (the default behavior when this property is <see langword="null"/>).
132
133
/// </para>
133
134
/// <para>
134
-
/// By default, <see cref="Process.Start()"/> will close this handle after starting the child process.
135
+
/// By default, <see cref="Process.Start()"/> will dispose this handle after starting the child process.
135
136
/// Set <see cref="LeaveHandlesOpen"/> to <see langword="true"/> to keep the handle open.
136
137
/// </para>
137
138
/// <para>
@@ -140,22 +141,23 @@ public string Arguments
140
141
/// </para>
141
142
/// </remarks>
142
143
/// <value>A <see cref="SafeFileHandle"/> to use as the standard input handle of the child process, or <see langword="null"/> to use the default behavior.</value>
/// Gets or sets a <see cref="SafeFileHandle"/> that will be used as the standard output of the child process.
147
148
/// When set, the handle is passed directly to the child process and <see cref="RedirectStandardOutput"/> must be <see langword="false"/>.
148
149
/// </summary>
149
150
/// <remarks>
150
151
/// <para>
151
-
/// The handle does not need to be inheritable; the runtime will make it inheritable as needed.
152
+
/// The handle does not need to be inheritable; the runtime will duplicate it as inheritable.
152
153
/// Use <see cref="SafeFileHandle.CreateAnonymousPipe"/> to create a pair of connected pipe handles,
153
154
/// <see cref="IO.File.OpenHandle"/> to open a file handle,
154
155
/// <see cref="IO.File.OpenNullHandle"/> to discard output,
155
-
/// or <see cref="Console.OpenStandardOutputHandle"/> to inherit the parent's standard output.
156
+
/// or <see cref="Console.OpenStandardOutputHandle"/> to inherit the parent's standard output
157
+
/// (the default behavior when this property is <see langword="null"/>).
156
158
/// </para>
157
159
/// <para>
158
-
/// By default, <see cref="Process.Start()"/> will close this handle after starting the child process.
160
+
/// By default, <see cref="Process.Start()"/> will dispose this handle after starting the child process.
159
161
/// Set <see cref="LeaveHandlesOpen"/> to <see langword="true"/> to keep the handle open.
160
162
/// </para>
161
163
/// <para>
@@ -164,22 +166,23 @@ public string Arguments
164
166
/// </para>
165
167
/// </remarks>
166
168
/// <value>A <see cref="SafeFileHandle"/> to use as the standard output handle of the child process, or <see langword="null"/> to use the default behavior.</value>
/// Gets or sets a <see cref="SafeFileHandle"/> that will be used as the standard error of the child process.
171
173
/// When set, the handle is passed directly to the child process and <see cref="RedirectStandardError"/> must be <see langword="false"/>.
172
174
/// </summary>
173
175
/// <remarks>
174
176
/// <para>
175
-
/// The handle does not need to be inheritable; the runtime will make it inheritable as needed.
177
+
/// The handle does not need to be inheritable; the runtime will duplicate it as inheritable.
176
178
/// Use <see cref="SafeFileHandle.CreateAnonymousPipe"/> to create a pair of connected pipe handles,
177
179
/// <see cref="IO.File.OpenHandle"/> to open a file handle,
178
180
/// <see cref="IO.File.OpenNullHandle"/> to discard error output,
179
-
/// or <see cref="Console.OpenStandardErrorHandle"/> to inherit the parent's standard error.
181
+
/// or <see cref="Console.OpenStandardErrorHandle"/> to inherit the parent's standard error
182
+
/// (the default behavior when this property is <see langword="null"/>).
180
183
/// </para>
181
184
/// <para>
182
-
/// By default, <see cref="Process.Start()"/> will close this handle after starting the child process.
185
+
/// By default, <see cref="Process.Start()"/> will dispose this handle after starting the child process.
183
186
/// Set <see cref="LeaveHandlesOpen"/> to <see langword="true"/> to keep the handle open.
184
187
/// </para>
185
188
/// <para>
@@ -188,17 +191,17 @@ public string Arguments
188
191
/// </para>
189
192
/// </remarks>
190
193
/// <value>A <see cref="SafeFileHandle"/> to use as the standard error handle of the child process, or <see langword="null"/> to use the default behavior.</value>
/// Gets or sets a value indicating whether the <see cref="StandardInput"/>, <see cref="StandardOutput"/>,
195
-
/// and <see cref="StandardError"/> handles should be left open after the process is started.
197
+
/// Gets or sets a value indicating whether the <see cref="StandardInputHandle"/>, <see cref="StandardOutputHandle"/>,
198
+
/// and <see cref="StandardErrorHandle"/> handles should be left open after the process is started.
196
199
/// </summary>
197
200
/// <remarks>
198
-
/// When <see langword="false"/> (the default), the handles are closed by <see cref="Process.Start()"/>
199
-
/// after starting the child process. When <see langword="true"/>, the caller is responsible for closing the handles.
201
+
/// When <see langword="false"/> (the default), the handles are disposed by <see cref="Process.Start()"/>
202
+
/// after starting the child process. When <see langword="true"/>, the caller is responsible for disposing the handles.
200
203
/// </remarks>
201
-
/// <value><see langword="true"/> to leave the handles open; <see langword="false"/> to close them after the process starts. The default is <see langword="false"/>.</value>
204
+
/// <value><see langword="true"/> to leave the handles open; <see langword="false"/> to dispose them after the process starts. The default is <see langword="false"/>.</value>
0 commit comments