UtilProcessCloseProcesses Method
Closes all the ocurrences found of running processes with the specified name.
Namespace: DevCase.Core.Diagnostics.ProcessesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static bool CloseProcesses(
string processName,
bool throwOnProcessNotFound = false
)
Public Shared Function CloseProcesses (
processName As String,
Optional throwOnProcessNotFound As Boolean = false
) As Boolean
Dim processName As String
Dim throwOnProcessNotFound As Boolean
Dim returnValue As Boolean
returnValue = UtilProcess.CloseProcesses(processName,
throwOnProcessNotFound)
public:
static bool CloseProcesses(
String^ processName,
bool throwOnProcessNotFound = false
)
static member CloseProcesses :
processName : string *
?throwOnProcessNotFound : bool
(* Defaults:
let _throwOnProcessNotFound = defaultArg throwOnProcessNotFound false
*)
-> bool
No code example is currently available or this language may not be supported.
- processName String
-
The process name.
- throwOnProcessNotFound Boolean (Optional)
-
If , throws an ArgumentException exception if any process was found with the specified name.
Boolean if the close message was successfully sent for all the process ocurrences;
if the at least one of the found process does not have a main window,
or if the main window is disabled (for example if a modal dialog is being shown),
or if
throwOnProcessNotFound is
and any process was found with the specified name.
ArgumentException
|
Any process found with the specified name.;processName
|