언어

Process.Signal(PosixSignal) 메서드

정의

연결된 프로세스에 신호를 보냅니다.

public:
 bool Signal(System::Runtime::InteropServices::PosixSignal signal);
[System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public bool Signal(System.Runtime.InteropServices.PosixSignal signal);
[<System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
member this.Signal : System.Runtime.InteropServices.PosixSignal -> bool
Public Function Signal (signal As PosixSignal) As Boolean

매개 변수

signal
PosixSignal

보낼 신호입니다.

반품

신호가 성공적으로 전송되었으면 프로세스가 이미 종료되었거나 더 이상 존재하지 않고 신호가 전달되지 않은 경우

특성

예외

이 개체와 연결된 프로세스가 없거나 프로세스 핸들이 잘못되었습니다.

프로세스 개체가 삭제되었습니다.

프로세스는 원격 컴퓨터에 있습니다.

현재 플랫폼 또는 지정된 신호는 지원되지 않습니다.

신호를 보낼 수 없습니다.

설명

Windows 경우에만 SIGKILL 지원되며 전송하면 프로세스가 종료됩니다. 프로세스 핸들에 액세스 권한이 PROCESS_TERMINATE 있어야 합니다.

적용 대상