dotnet / dotnet/dotnet-api-docs
Should the Process instances be disposed?
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
Please clarify if the `Process` instances returned by the `GetProcessesByName` method should be disposed by the caller.
In that case, please update the examples accordingly.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: ad7b0b29-4df3-aefd-2695-c64fa90f3d51
* Version Independent ID: 08bf7fd3-54a6-aad5-95dc-81f4d6819d3e
* Content: [Process.GetProcessesByName Method (System.Diagnostics)](https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.getprocessesbyname?view=netframework-4.7.2#System_Diagnostics_Process_GetProcessesByName_System_String_)
* Content Source: [xml/System.Diagnostics/Process.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Diagnostics/Process.xml)
* Product: **.net**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.