26 references to Format
System.Diagnostics.Process (26)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (1)
142
throw new UnauthorizedAccessException(SR.
Format
(SR.OpenProcessAccessDenied, processId));
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (1)
377
throw new Win32Exception(Interop.Errors.ERROR_NO_ASSOCIATION, SR.
Format
(SR.UseShellExecuteVerbNotSupported, verb));
System\Diagnostics\Process.cs (5)
999
throw new ArgumentException(SR.
Format
(SR.MissingProcess, processId.ToString()));
1016
throw new ArgumentException(SR.
Format
(SR.MissingProcess, processId.ToString()));
1833
return TryGetExitStatus(out exitStatus) ? exitStatus : throw new InvalidOperationException(SR.
Format
(SR.ProcessHasExited, _processId.ToString()));
1868
return TryGetExitStatus(out exitStatus) ? true : throw new InvalidOperationException(SR.
Format
(SR.ProcessHasExited, _processId.ToString()));
1903
return TryGetExitStatus(out exitStatus) ? exitStatus : throw new InvalidOperationException(SR.
Format
(SR.ProcessHasExited, _processId.ToString()));
System\Diagnostics\Process.Scenarios.cs (2)
381
throw new InvalidOperationException(SR.
Format
(SR.UseShellExecuteNotSupportedForScenario, methodName));
389
throw new InvalidOperationException(SR.
Format
(SR.RedirectStandardOutputAndErrorRequired, methodName));
System\Diagnostics\Process.Unix.cs (1)
404
throw new InvalidOperationException(SR.
Format
(SR.ProcessHasExited, _processId.ToString()));
System\Diagnostics\ProcessStartInfo.Unix.cs (12)
18
get { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(PasswordInClearText))); }
19
set { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(PasswordInClearText))); }
26
get { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(Domain))); }
27
set { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(Domain))); }
33
get { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(LoadUserProfile))); }
34
set { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(LoadUserProfile))); }
40
get { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(UseCredentialsForNetworkingOnly))); }
41
set { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(UseCredentialsForNetworkingOnly))); }
50
get { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(Password))); }
51
set { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(Password))); }
57
get { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(CreateNewProcessGroup))); }
58
set { throw new PlatformNotSupportedException(SR.
Format
(SR.ProcessStartSingleFeatureNotSupported, nameof(CreateNewProcessGroup))); }
System\Diagnostics\ProcessThread.Linux.cs (1)
88
throw new InvalidOperationException(SR.
Format
(SR.ThreadExited, Id));
System\Diagnostics\ProcessUtils.Unix.cs (2)
125
throw new Win32Exception(SR.
Format
(SR.UserDoesNotExist, startInfo.UserName));
131
throw new Win32Exception(SR.
Format
(SR.UserGroupsCannotBeDetermined, startInfo.UserName));
System\Runtime\InteropServices\UnixProcessStartArguments.cs (1)
111
throw new InvalidOperationException(SR.
Format
(SR.UseShellExecuteNotSupportedForScenario, nameof(Start)));