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