Process::HandleCount Property
.NET Framework (current version)
Gets the number of handles opened by the process.
Assembly: System (in System.dll)
| Exception | Condition |
|---|---|
| PlatformNotSupportedException | The platform is Windows 98 or Windows Millennium Edition (Windows Me); set the ProcessStartInfo::UseShellExecute property to false to access this property on Windows 98 and Windows Me. |
Handles provide a way for a process to refer to objects. A process can obtain handles to files, resources, message queues, and many other operating system objects. The operating system reclaims the memory associated with the process only when the handle count is zero.
This property is not available on this platform if you started the process with ProcessStartInfo::UseShellExecute set to true.
LinkDemand
for full trust for the immediate caller. This member cannot be used by partially trusted code.
.NET Framework
Available since 1.1
Available since 1.1
Show: