From b86c1ecd46d6e16762b15b187556288584f47497 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:52:17 +0000 Subject: [PATCH 01/13] Backport Process timing XML doc updates --- xml/System.Diagnostics/Process.xml | 47 +++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index e6842c10505..904045d985b 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -1105,6 +1105,7 @@ The following code example creates a process that prints a file. It sets the + No process is associated with this object, the process has not exited, or there is no process handle available. You are trying to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. @@ -3573,11 +3574,17 @@ If no main module is found, it could be because the process hasn't finished load System.TimeSpan - Gets the privileged processor time for this process. + Gets the amount of time the process has spent running code inside the operating system core. A that indicates the amount of time that the process has spent running code inside the operating system core. + No process is associated with this object. On Windows, there is no process handle available. On Unix, the process has exited. + The operating system could not retrieve process timing information. You are attempting to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. @@ -5668,14 +5677,10 @@ The file specified in the could not be found. Gets the time that the associated process was started. - An object that indicates when the process started. An exception is thrown if the process is not running. - To be added. + An object that indicates when the process started. + On Windows, if a handle to the process is available, this property can be read after the process exits. On Unix, this property caches its value on first access. A cached value can be read after the process exits, but accessing an uncached value after the process exits might throw when the value is unavailable. You are attempting to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. - The process has exited. - - -or- - - The process has not been started. + No process is associated with this object; on Windows, there is no process handle available; or on Unix, the value was not cached and is unavailable after the process exited. An error occurred in the call to the Windows function. @@ -5836,6 +5841,12 @@ The file specified in the could not be found. could not be found. System.TimeSpan - Gets the total processor time for this process. + Gets the amount of time the associated process has spent utilizing the CPU. This value is the sum of the and the . A that indicates the amount of time that the associated process has spent utilizing the CPU. This value is the sum of the and the . could not be found. ]]> + No process is associated with this object. On Windows, there is no process handle available. On Unix, the process has exited. + The operating system could not retrieve process timing information. You are attempting to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. @@ -5956,11 +5975,17 @@ The file specified in the could not be found. System.TimeSpan - Gets the user processor time for this process. + Gets the amount of time the associated process has spent running code inside the application portion of the process (not the operating system core). A that indicates the amount of time that the associated process has spent running code inside the application portion of the process (not inside the operating system core). could not be found. ]]> + No process is associated with this object. On Windows, there is no process handle available. On Unix, the process has exited. + The operating system could not retrieve process timing information. You are attempting to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. From c4db64ee18392cc4a2a1e153c00a2984631c0461 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:52:55 +0000 Subject: [PATCH 02/13] Clarify ExitTime InvalidOperationException wording --- xml/System.Diagnostics/Process.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index 904045d985b..07436092b1a 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -1105,7 +1105,7 @@ The following code example creates a process that prints a file. It sets the - No process is associated with this object, the process has not exited, or there is no process handle available. + No process is associated with this object, the process is still running, or there is no process handle available. You are trying to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. From 0710dda8703e90ecf48bf09636e24d5e1c6d79a5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:53:29 +0000 Subject: [PATCH 03/13] Align StartTime remarks and ExitTime exception formatting --- xml/System.Diagnostics/Process.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index 07436092b1a..c5dea1a492f 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -1105,7 +1105,7 @@ The following code example creates a process that prints a file. It sets the - No process is associated with this object, the process is still running, or there is no process handle available. + No process is associated with this object. On Windows, the process is still running or there is no process handle available. On Unix, the process is still running. You are trying to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. @@ -5678,7 +5678,15 @@ The file specified in the could not be found. Gets the time that the associated process was started. An object that indicates when the process started. - On Windows, if a handle to the process is available, this property can be read after the process exits. On Unix, this property caches its value on first access. A cached value can be read after the process exits, but accessing an uncached value after the process exits might throw when the value is unavailable. + + when the value is unavailable. + + ]]> + You are attempting to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. No process is associated with this object; on Windows, there is no process handle available; or on Unix, the value was not cached and is unavailable after the process exited. An error occurred in the call to the Windows function. From 045637797bd6d2226e32f04a99427031abc14be8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:54:01 +0000 Subject: [PATCH 04/13] Refine ExitTime and StartTime exception phrasing --- xml/System.Diagnostics/Process.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index c5dea1a492f..4d0004a2086 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -1105,7 +1105,7 @@ The following code example creates a process that prints a file. It sets the - No process is associated with this object. On Windows, the process is still running or there is no process handle available. On Unix, the process is still running. + No process is associated with this object, the process has not exited, or there is no process handle available. You are trying to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. @@ -5682,8 +5682,8 @@ The file specified in the could not be found. when the value is unavailable. + On Windows, if a handle to the process is available, this property can be read after the process has exited. + On Unix, this property caches its value on first access. A cached value can be read after the process has exited, but accessing an uncached value after the process has exited might throw when the value is unavailable. ]]> From 2718ecba5aaf7a8986ee2871babdf0ebf71cb3fb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:54:35 +0000 Subject: [PATCH 05/13] Clarify InvalidOperationException condition wording --- xml/System.Diagnostics/Process.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index 4d0004a2086..552379a62b4 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -1105,7 +1105,7 @@ The following code example creates a process that prints a file. It sets the - No process is associated with this object, the process has not exited, or there is no process handle available. + No process is associated with this object, the process is still running, or there is no process handle available. You are trying to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. @@ -5688,7 +5688,7 @@ The file specified in the could not be found. ]]> You are attempting to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. - No process is associated with this object; on Windows, there is no process handle available; or on Unix, the value was not cached and is unavailable after the process exited. + Thrown when any of the following conditions is true: no process is associated with this object; on Windows, there is no process handle available; or on Unix, the value was not cached and is unavailable after the process exited. An error occurred in the call to the Windows function. From c62169e1ea1e9fe620024ae3991a3beb1b044c86 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:55:16 +0000 Subject: [PATCH 06/13] Polish Process timing doc exception and markdown spacing --- xml/System.Diagnostics/Process.xml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index 552379a62b4..df1ee8b8818 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -1105,7 +1105,7 @@ The following code example creates a process that prints a file. It sets the - No process is associated with this object, the process is still running, or there is no process handle available. + No process is associated with this object. The process is still running. On Windows, this exception also occurs when there is no process handle available. You are trying to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. @@ -3583,8 +3583,6 @@ If no main module is found, it could be because the process hasn't finished load On Windows, if a handle to the process is available, the value can be retrieved after the process exits. On Unix, the value is unavailable after the process exits. - - ## Examples The following example starts an instance of Notepad. The example then retrieves and displays various properties of the associated process. The example detects when the process exits, and displays the process's exit code. @@ -5683,12 +5681,12 @@ The file specified in the could not be found. ## Remarks On Windows, if a handle to the process is available, this property can be read after the process has exited. - On Unix, this property caches its value on first access. A cached value can be read after the process has exited, but accessing an uncached value after the process has exited might throw when the value is unavailable. + On Unix, this property caches its value on first access. A cached value can be read after the process has exited, but accessing an uncached value after the process has exited can throw when the value is unavailable. ]]> You are attempting to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. - Thrown when any of the following conditions is true: no process is associated with this object; on Windows, there is no process handle available; or on Unix, the value was not cached and is unavailable after the process exited. + Any of the following conditions is true: no process is associated with this object; on Windows, there is no process handle available; or on Unix, the value was not cached and is unavailable after the process exited. An error occurred in the call to the Windows function. @@ -5853,8 +5851,6 @@ The file specified in the could not be found. On Windows, if a handle to the process is available, the value can be retrieved after the process exits. On Unix, the value is unavailable after the process exits. - - ## Examples The following example starts an instance of Notepad. The example then retrieves and displays various properties of the associated process. The example detects when the process exits, and displays the process's exit code. @@ -5920,8 +5916,6 @@ The file specified in the could not be found. On Windows, if a handle to the process is available, the value can be retrieved after the process exits. On Unix, the value is unavailable after the process exits. - - ## Examples The following example starts an instance of Notepad. The example then retrieves and displays various properties of the associated process. The example detects when the process exits, and displays the process's exit code. From 1d4224760cf1778ebadb664e957f5eccc569e352 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:56:16 +0000 Subject: [PATCH 07/13] Normalize UserProcessorTime remarks formatting --- xml/System.Diagnostics/Process.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index df1ee8b8818..87fe9ccbf1c 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -3579,7 +3579,6 @@ If no main module is found, it could be because the process hasn't finished load could not be found. when the value is unavailable. @@ -5847,7 +5845,6 @@ The file specified in the could not be found. could not be found. could not be found. Date: Mon, 20 Jul 2026 10:56:45 +0000 Subject: [PATCH 08/13] Fix StartTime exception grammar --- xml/System.Diagnostics/Process.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index 87fe9ccbf1c..cb7addc267c 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -5684,7 +5684,7 @@ The file specified in the could not be found. ]]> You are attempting to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. - Any of the following conditions is true: no process is associated with this object; on Windows, there is no process handle available; or on Unix, the value was not cached and is unavailable after the process exited. + Any of the following conditions are true: no process is associated with this object; on Windows, there is no process handle available; or on Unix, the value was not cached and is unavailable after the process exited. An error occurred in the call to the Windows function. From 56240c42f1aaed95f80d813b6af862dc59926aa5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:57:16 +0000 Subject: [PATCH 09/13] Simplify StartTime InvalidOperationException phrasing --- xml/System.Diagnostics/Process.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index cb7addc267c..e9086ac865e 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -5684,7 +5684,7 @@ The file specified in the could not be found. ]]> You are attempting to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. - Any of the following conditions are true: no process is associated with this object; on Windows, there is no process handle available; or on Unix, the value was not cached and is unavailable after the process exited. + No process is associated with this object; on Windows, there is no process handle available; or on Unix, the value was not cached and is unavailable after the process exited. An error occurred in the call to the Windows function. From d98b93b482e2e736cae9d39e47eec92f0727be98 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:57:56 +0000 Subject: [PATCH 10/13] Clarify ExitTime InvalidOperationException condition --- xml/System.Diagnostics/Process.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index e9086ac865e..b09e3a2c748 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -1105,7 +1105,7 @@ The following code example creates a process that prints a file. It sets the - No process is associated with this object. The process is still running. On Windows, this exception also occurs when there is no process handle available. + Attempting to access this property before the process has exited, when no process is associated with this object, or (on Windows) when there is no process handle available. You are trying to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. From 7cbd325509eb7e472b32b805b7cbe55c145048b5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 11:23:11 +0000 Subject: [PATCH 11/13] Fix StartTime value text and remove misplaced ToString platform notes --- xml/System.Diagnostics/Process.xml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index b09e3a2c748..03607e598b2 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -5674,7 +5674,7 @@ The file specified in the could not be found. Gets the time that the associated process was started. - An object that indicates when the process started. + A that indicates when the associated process was started. could not be found. Date: Mon, 20 Jul 2026 13:42:06 +0200 Subject: [PATCH 12/13] Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- xml/System.Diagnostics/Process.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index 03607e598b2..1c19f90a3a1 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -3595,7 +3595,7 @@ If no main module is found, it could be because the process hasn't finished load The operating system could not retrieve process timing information. You are attempting to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. - + @@ -5990,8 +5990,8 @@ The file specified in the could not be found. No process is associated with this object. On Windows, there is no process handle available. On Unix, the process has exited. The operating system could not retrieve process timing information. You are attempting to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. - + From 2b917e24e2da74bb20b8cb90d6e6417a959b4614 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Tue, 21 Jul 2026 14:32:30 +0200 Subject: [PATCH 13/13] Apply suggestions from code review Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --- xml/System.Diagnostics/Process.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index 1c19f90a3a1..494f1ae3bb5 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -1105,7 +1105,7 @@ The following code example creates a process that prints a file. It sets the - Attempting to access this property before the process has exited, when no process is associated with this object, or (on Windows) when there is no process handle available. + You're attempting to access this property before the process has exited, when no process is associated with this object, or (on Windows) when there is no process handle available. You are trying to access the property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. @@ -5901,7 +5901,7 @@ The file specified in the could not be found. System.TimeSpan - Gets the amount of time the associated process has spent utilizing the CPU. This value is the sum of the and the . + Gets the amount of time the associated process has spent utilizing the CPU. This value is the sum of and . A that indicates the amount of time that the associated process has spent utilizing the CPU. This value is the sum of the and the .