Click or drag to resize
Ranorex

IHostCloseApplication Method (Int32)

Closes an application with the specified process ID by trying to close its main window.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
void CloseApplication(
	int processId
)

Parameters

processId
Type: SystemInt32
The process ID of the application to close.
Exceptions
ExceptionCondition
ElementNotFoundExceptionIf no application is found.
See Also