Process.Responding Property

 

Gets a value indicating whether the user interface of the process is responding.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

member Responding : bool with get

Property Value

Type: System.Boolean

true if the user interface of the associated process is responding to the system; otherwise, false.

Exception Condition
PlatformNotSupportedException

The platform is Windows 98 or Windows Millennium Edition (Windows Me); set ProcessStartInfo.UseShellExecute to false to access this property on Windows 98 and Windows Me.

InvalidOperationException

There is no process associated with this Process object.

NotSupportedException

You are attempting to access the Responding 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.

If a process has a user interface, the Responding property contacts the user interface to determine whether the process is responding to user input. If the interface does not respond immediately, the Responding property returns false. Use this property to determine whether the interface of the associated process has stopped responding.

If the process does not have a MainWindowHandle, this property returns true.

Win98WinMe

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

The following example starts an instance of Notepad. The example then retrieves and displays various properties of the associated process. The example detects when the process exits, and displays the process's exit code.

No code example is currently available or this language may not be supported.

LinkDemand

for full trust for the immediate caller. This member cannot be used by partially trusted code.

.NET Framework
Available since 1.1
Return to top
Show: