언어

ProcessStartInfo.StartSuspended 속성

정의

프로세스를 일시 중단된 상태로 시작해야 하는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool StartSuspended { bool get(); void set(bool value); };
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
[System.Runtime.Versioning.SupportedOSPlatform("macos")]
public bool StartSuspended { get; set; }
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
[<System.Runtime.Versioning.SupportedOSPlatform("macos")>]
member this.StartSuspended : bool with get, set
Public Property StartSuspended As Boolean

속성 값

true프로세스를 일시 중단해야 하는 경우 그렇지 않으면 . false 기본값은 false입니다.

특성

설명

이 속성이 있으면 true프로세스가 주 스레드가 일시 중단된 상태로 만들어집니다. 프로세스 핸들(예: 반환된 Start(ProcessStartInfo)핸들)에서 호출될 때까지 Resume() 프로세스가 실행을 시작하지 않습니다.

Windows 프로세스는 CREATE_SUSPENDED 플래그로 시작됩니다.

macOS에서 프로세스는 플래그로 POSIX_SPAWN_START_SUSPENDED 시작됩니다.

이 속성은 다음으로 설정된 true상태에서 UseShellExecute 함께 사용할 수 없습니다.

적용 대상