Skip to content

Commit ca7d43d

Browse files
authored
Update the doc for System.Diagnostics.Process (#9624)
1 parent 7121a87 commit ca7d43d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xml/System.Diagnostics/Process.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@
110110

111111
A system process is uniquely identified on the system by its process identifier. Like many Windows resources, a process is also identified by its handle, which might not be unique on the computer. A handle is the generic term for an identifier of a resource. The operating system persists the process handle, which is accessed through the <xref:System.Diagnostics.Process.Handle%2A> property of the <xref:System.Diagnostics.Process> component, even when the process has exited. Thus, you can get the process's administrative information, such as the <xref:System.Diagnostics.Process.ExitCode%2A> (usually either zero for success or a nonzero error code) and the <xref:System.Diagnostics.Process.ExitTime%2A>. Handles are an extremely valuable resource, so leaking handles is more virulent than leaking memory.
112112

113+
On macOS, the following properties return 0:
114+
115+
- <xref:System.Diagnostics.Process.PeakVirtualMemorySize64>
116+
- <xref:System.Diagnostics.Process.PrivateMemorySize64>
117+
- <xref:System.Diagnostics.Process.PeakWorkingSet64>
118+
113119
> [!NOTE]
114120
> This class contains a link demand and an inheritance demand at the class level that applies to all members. A <xref:System.Security.SecurityException> is thrown when either the immediate caller or the derived class does not have full-trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands).
115121

0 commit comments

Comments
 (0)