Gets the native handle of the associated process.
Assembly: System (in System.dll)
The process has not been started. The property cannot be read because there is no process associated with this Process instance.
The Process instance has been attached to a running process but you do not have the necessary permissions to get a handle with full access rights.
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.
An application can obtain a handle to a process that can be used as a parameter to many process-information and control functions. You can use this handle to initialize a WaitHandle or to call native methods with platform invoke.
This process handle is private to an application--in other words, process handles cannot be shared. A process also has a process Id which, unlike the , is unique and, therefore, valid throughout the system.
for full trust for the immediate caller. This member cannot be used by partially trusted code.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.