We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8207c80 commit 3a6e470Copy full SHA for 3a6e470
1 file changed
src/OneScript.StandardLibrary/Processes/ProcessContext.cs
@@ -196,10 +196,15 @@ public int ProcessId
196
197
[ContextProperty("Имя", "Name")] public string Name => _p.ProcessName;
198
199
- [ContextMethod("Завершить","Stop")]
200
- public void Stop()
+ /// <summary>
+ /// Завершить процесс и, опционально, все его дочерние процессы.
201
+ /// </summary>
202
+ /// <param name="entireProcessTree">Булево. Завершить все дочерние процессы.</param>
203
+ /// <exception cref="AggregateException">Не все дочерние процессы удалось завершить (только при entireProcessTree = true).</exception>
204
+ [ContextMethod("Завершить", "Stop")]
205
+ public void Stop(bool entireProcessTree = false)
206
{
- _p.Kill();
207
+ _p.Kill(entireProcessTree);
208
}
209
210
public void Dispose()
0 commit comments