Skip to content

Commit 291b4d9

Browse files
committed
Clarify documentation for Process.Start return value
1 parent db9888e commit 291b4d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Diagnostics/Process.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5252,7 +5252,7 @@ There is a similar issue when you read all text from both the standard output an
52525252
<format type="text/markdown"><![CDATA[
52535253

52545254
## Remarks
5255-
Use this overload to start a process resource and associate it with the current <xref:System.Diagnostics.Process> component. The return value `true` indicates that a new process resource was started. If the process resource specified by the <xref:System.Diagnostics.ProcessStartInfo.FileName%2A> member of the <xref:System.Diagnostics.Process.StartInfo%2A> property is already running on the computer, no additional process resource is started. Instead, the running process resource is reused and `false` is returned.
5255+
The return value `true` indicates that a new process resource was started. If <xref:System.Diagnostics.ProcessStartInfo.UseShellExecute%2A> is set to `false` (or on Unix systems where `UseShellExecute` is ignored), the method will always return `true` as the process is started directly. If `UseShellExecute` is `true`, the operating system may reuse an existing process in some cases, and `false` is returned. For instance, if you start a URL with a default browser and an instance of the browser is already running, a new process may not be created, and `false` will be returned.
52565256

52575257
You can start a ClickOnce application by specifying the location (for example, a Web address) from which you originally installed the application. Do not start a ClickOnce application by specifying its installed location on your hard drive.
52585258

0 commit comments

Comments
 (0)