119 references to SR
System.Diagnostics.Process (119)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (4)
142throw new UnauthorizedAccessException(SR.Format(SR.OpenProcessAccessDenied, processId)); 177throw new InvalidOperationException(SR.CantSetRedirectForSafeProcessHandleStart); 486throw new InvalidOperationException(SR.InvalidProcessHandle);
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (7)
50throw new InvalidOperationException(SR.InvalidProcessHandle); 180throw new InvalidOperationException(SR.InvalidProcessHandle); 185throw new PlatformNotSupportedException(SR.NotSupportedForNonChildProcess); 312throw new ArgumentException(SR.Argument_InvalidProcessId, nameof(callback)); 377throw new Win32Exception(Interop.Errors.ERROR_NO_ASSOCIATION, SR.Format(SR.UseShellExecuteVerbNotSupported, verb)); 408filename = Process.GetPathToOpenFile() ?? throw new Win32Exception(Interop.Errors.ERROR_NO_ASSOCIATION, SR.UseShellExecuteNoOpenProgram);
System\Collections\Specialized\DictionaryWrapper.cs (1)
98throw new ArgumentException(SR.Argument_NullCharInEnvVar, name);
System\Diagnostics\Process.cs (32)
562throw new InvalidOperationException(SR.CantGetProcessStartInfo); 575throw new InvalidOperationException(SR.CantSetProcessStartInfo); 671throw new InvalidOperationException(SR.CantGetStandardIn); 689throw new InvalidOperationException(SR.CantGetStandardOut); 698throw new InvalidOperationException(SR.CantMixSyncAsyncOperation); 715throw new InvalidOperationException(SR.CantGetStandardError); 724throw new InvalidOperationException(SR.CantMixSyncAsyncOperation); 924throw new InvalidOperationException(SR.NoAssociatedProcess); 937throw new InvalidOperationException(SR.ProcessIdRequired); 948throw new NotSupportedException(SR.NotSupportedRemote); 955throw new InvalidOperationException(SR.WaitTillExit); 960throw new InvalidOperationException(SR.NoProcessHandle); 999throw new ArgumentException(SR.Format(SR.MissingProcess, processId.ToString())); 1016throw new ArgumentException(SR.Format(SR.MissingProcess, processId.ToString())); 1713throw new InvalidOperationException(SR.NoAssociatedProcess); 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())); 1922throw new InvalidOperationException(SR.CantMixSyncAsyncOperation); 1926throw new InvalidOperationException(SR.PendingAsyncOperation); 1934throw new InvalidOperationException(SR.CantGetStandardOut); 1959throw new InvalidOperationException(SR.CantMixSyncAsyncOperation); 1964throw new InvalidOperationException(SR.PendingAsyncOperation); 1973throw new InvalidOperationException(SR.CantGetStandardError); 1997throw new InvalidOperationException(SR.NoAsyncOperation); 2018throw new InvalidOperationException(SR.NoAsyncOperation); 2107throw new InvalidOperationException(SR.NoProcessInfo);
System\Diagnostics\Process.Linux.cs (2)
200throw new PlatformNotSupportedException(SR.MinimumWorkingSetNotSupported); 320throw new Win32Exception(SR.ProcessInformationUnavailable);
System\Diagnostics\Process.Multiplexing.cs (4)
603throw new InvalidOperationException(SR.CantGetStandardOut); 607throw new InvalidOperationException(SR.CantGetStandardError); 611throw new InvalidOperationException(SR.CantMixSyncAsyncOperation); 615throw new InvalidOperationException(SR.CantMixSyncAsyncOperation);
System\Diagnostics\Process.NonUap.cs (2)
26throw new InvalidOperationException(SR.KillEntireProcessTree_DisallowedBecauseTreeContainsCallingProcess); 31throw new AggregateException(SR.KillEntireProcessTree_TerminationIncomplete, result);
System\Diagnostics\Process.Scenarios.cs (4)
381throw new InvalidOperationException(SR.Format(SR.UseShellExecuteNotSupportedForScenario, methodName)); 389throw new InvalidOperationException(SR.Format(SR.RedirectStandardOutputAndErrorRequired, methodName));
System\Diagnostics\Process.Unix.cs (5)
42throw new PlatformNotSupportedException(SR.ProcessStartWithPasswordAndDomainNotSupported); 49throw new PlatformNotSupportedException(SR.ProcessStartWithPasswordAndDomainNotSupported); 412throw new InvalidOperationException(SR.Format(SR.ProcessHasExited, _processId.ToString())); 525private static bool WaitForInputIdleCore(int _ /*milliseconds*/) => throw new InvalidOperationException(SR.InputIdleUnknownError);
System\Diagnostics\ProcessManager.Unix.cs (1)
57throw new PlatformNotSupportedException(SR.RemoteMachinesNotSupported);
System\Diagnostics\ProcessStartInfo.cs (20)
435throw new InvalidOperationException(SR.FileNameMissing); 439throw new InvalidOperationException(SR.StandardInputEncodingNotAllowed); 443throw new InvalidOperationException(SR.StandardOutputEncodingNotAllowed); 447throw new InvalidOperationException(SR.StandardErrorEncodingNotAllowed); 451throw new InvalidOperationException(SR.ArgumentAndArgumentListInitialized); 459throw new ArgumentException(SR.Argument_NullCharInArgument, nameof(Arguments)); 474throw new ArgumentException(SR.Argument_NullCharInArgument, $"ArgumentList[{i}]"); 483throw new InvalidOperationException(SR.CantRedirectStreams); 488throw new InvalidOperationException(SR.StartDetachedNotCompatible); 499throw new InvalidOperationException(SR.StartSuspendedNotCompatible); 505throw new InvalidOperationException(SR.InheritedHandlesRequiresCreateProcess); 512throw new InvalidOperationException(SR.KillOnParentExitCannotBeUsedWithUseShellExecute); 528throw new ArgumentException(SR.Arg_InvalidHandle, InheritedHandlesParamName(i)); 540throw new ArgumentException(SR.InheritedHandles_OnlySelectedSafeHandlesAreSupported, InheritedHandlesParamName(i)); 548throw new ArgumentException(SR.InheritedHandles_MustNotContainDuplicates, InheritedHandlesParamName(i)); 566throw new InvalidOperationException(SR.CantSetHandleAndRedirect); 570throw new InvalidOperationException(SR.CantSetHandleAndRedirect); 574throw new InvalidOperationException(SR.CantSetHandleAndRedirect); 588throw new ArgumentException(SR.Arg_InvalidHandle, paramName); 618throw new ArgumentException(SR.InheritedHandles_MustNotContainStandardHandles, nameof(InheritedHandles));
System\Diagnostics\ProcessStartInfo.Unix.cs (24)
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.cs (2)
136throw new InvalidOperationException(SR.WaitReasonUnavailable); 157throw new NotSupportedException(SR.NotSupportedRemoteThread);
System\Diagnostics\ProcessThread.Linux.cs (2)
88throw new InvalidOperationException(SR.Format(SR.ThreadExited, Id));
System\Diagnostics\ProcessUtils.cs (2)
24string msg = SR.Format(SR.ErrorStartingProcess, fileName, directoryForException, errorMessage);
System\Diagnostics\ProcessUtils.Unix.cs (5)
125throw new Win32Exception(SR.Format(SR.UserDoesNotExist, startInfo.UserName)); 131throw new Win32Exception(SR.Format(SR.UserGroupsCannotBeDetermined, startInfo.UserName)); 343throw new Win32Exception(SR.DirectoryNotValidAsInput);
System\Runtime\InteropServices\UnixProcessStartArguments.cs (2)
111throw new InvalidOperationException(SR.Format(SR.UseShellExecuteNotSupportedForScenario, nameof(Start)));