UtilProcessKillProcess Method
Kills the first ocurrence found of a running process 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 KillProcess(
string processName,
bool killChildProcesses = false,
bool throwOnProcessNotFound = false
)
Public Shared Function KillProcess (
processName As String,
Optional killChildProcesses As Boolean = false,
Optional throwOnProcessNotFound As Boolean = false
) As Boolean
Dim processName As String
Dim killChildProcesses As Boolean
Dim throwOnProcessNotFound As Boolean
Dim returnValue As Boolean
returnValue = UtilProcess.KillProcess(processName,
killChildProcesses, throwOnProcessNotFound)
public:
static bool KillProcess(
String^ processName,
bool killChildProcesses = false,
bool throwOnProcessNotFound = false
)
static member KillProcess :
processName : string *
?killChildProcesses : bool *
?throwOnProcessNotFound : bool
(* Defaults:
let _killChildProcesses = defaultArg killChildProcesses false
let _throwOnProcessNotFound = defaultArg throwOnProcessNotFound false
*)
-> bool
No code example is currently available or this language may not be supported.
- processName String
-
The process name.
- killChildProcesses Boolean (Optional)
-
If , also kills any child process of the found process.
- throwOnProcessNotFound Boolean (Optional)
-
If , throws an ArgumentException exception if any process was found with the specified name.
Boolean
if successful
; if failed
or
if
throwOnProcessNotFound is
and any process was found with the specified name.
ArgumentException
|
Any process found with the specified name.;processName
|