This documentation is archived and is not being maintained.

Process.HandleCount Property

Gets the number of handles opened by the process.

[Visual Basic]
Public ReadOnly Property HandleCount As Integer
public int HandleCount {get;}
public: __property int get_HandleCount();
public function get HandleCount() : int;

Property Value

The number of operating system handles the process has opened.


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.

Windows 98 Platform Note:  This property is not available on this platform if you started the process with ProcessStartInfo.UseShellExecute set to true.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

Process Class | Process Members | System.Diagnostics Namespace | Handle | Start | CloseMainWindow | Kill