Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify documentation for Process.Start return value #10673

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xml/System.Diagnostics/Process.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5252,7 +5252,7 @@ There is a similar issue when you read all text from both the standard output an
<format type="text/markdown"><![CDATA[

## Remarks
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.
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.

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.

Expand Down