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