2192 references to ArgumentException
AndroidAppBuilder (21)
ApkBuilder.cs (15)
59throw new ArgumentException($"AppDir='{AppDir}' is empty or doesn't exist"); 64throw new ArgumentException($"MainLibraryFileName='{mainLibraryFileName}' was not found in AppDir='{AppDir}'"); 69throw new ArgumentException("RuntimeIdentifier should not be empty and should contain a valid android RID"); 74throw new ArgumentException($"ProjectName='{ProjectName}' should not not contain spaces."); 88throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or empty (can be set via ANDROID_SDK_ROOT envvar)."); 93throw new ArgumentException($"Android NDK='{AndroidNdk}' was not found or empty (can be set via ANDROID_NDK_ROOT envvar)."); 103throw new ArgumentException($"Using DiagnosticPorts requires diagnostics_tracing runtime component, which was not included in 'RuntimeComponents' item group. @RuntimeComponents: '{string.Join(", ", RuntimeComponents)}'"); 126throw new ArgumentException($"BuildApiLevel={BuildApiLevel} < MinApiLevel={MinApiLevel}. " + 132throw new ArgumentException($"BuildApiLevel={BuildApiLevel} < TargetApiLevel={TargetApiLevel}. " + 140throw new ArgumentException($"{buildToolsFolder} was not found."); 238throw new ArgumentException($"API level={BuildApiLevel} is not downloaded in Android SDK"); 261throw new ArgumentException($"{monoRuntimeLib} was not found"); 544throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or incorrect (can be set via ANDROID_SDK_ROOT envvar)."); 569throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or incorrect (can be set via ANDROID_SDK_ROOT envvar)."); 610throw new ArgumentException($"Android SDK ({androidSdkDir}) doesn't contain build-tools.");
src\tasks\Common\AndroidSdkHelper.cs (3)
23throw new ArgumentException($"Android SDK='{androidSdkPath}' was not found or empty (can be set via ANDROID_SDK_ROOT envvar)."); 40throw new ArgumentException($"{_buildToolsPath} was not found."); 77throw new ArgumentException($"Android SDK ({androidSdkPath}) doesn't contain build-tools.");
src\tasks\Common\Utils.cs (3)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
AppleAppBuilder (16)
AppleAppBuilder.cs (12)
199throw new ArgumentException($"Property \"{nameof(MonoRuntimeHeaders)}\" is not supported with NativeAOT runtime and will be ignored."); 202throw new ArgumentException($"Property \"{nameof(MainLibraryFileName)}\" is not supported with NativeAOT runtime and will be ignored."); 205throw new ArgumentException($"Property \"{nameof(ForceInterpreter)}\" is not supported with NativeAOT runtime and will be ignored."); 208throw new ArgumentException($"Property \"{nameof(ForceAOT)}\" is not supported with NativeAOT runtime and will be ignored."); 211throw new ArgumentException($"Item \"{nameof(RuntimeComponents)}\" is not supported with NativeAOT runtime and will be ignored."); 214throw new ArgumentException($"Property \"{nameof(DiagnosticPorts)}\" is not supported with NativeAOT runtime and will be ignored."); 217throw new ArgumentException($"Property \"{nameof(EnableRuntimeLogging)}\" is not supported with NativeAOT runtime and will be ignored."); 222throw new ArgumentException($"The \"{nameof(AppleAppBuilderTask)}\" task was not given a value for the required parameter \"{nameof(MonoRuntimeHeaders)}\" when using Mono runtime."); 237throw new ArgumentException($"MainLibraryFileName='{MainLibraryFileName}' was not found in AppDir='{AppDir}'"); 243throw new ArgumentException($"ProjectName='{ProjectName}' should not contain spaces"); 299throw new ArgumentException($"Using DiagnosticPorts requires diagnostics_tracing runtime component, which was not included in 'RuntimeComponents' item group. @RuntimeComponents: '{string.Join(", ", RuntimeComponents)}'"); 304throw new ArgumentException("DevTeamProvisioning must be set to a valid value when App Sandbox is enabled, using '-' is not supported.");
src\tasks\Common\Utils.cs (3)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
Xcode.cs (1)
145throw new ArgumentException("A valid runtime identifier was not specified (os-arch)");
AssemblyStripper (49)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Binary\ImageReader.cs (2)
98 throw new ArgumentException ("Empty image array"); 109 throw new ArgumentException ("Can not read from stream");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Cil\CilWorker.cs (17)
53 throw new ArgumentException ("opcode"); 64 throw new ArgumentException ("opcode"); 74 throw new ArgumentException ("code"); 85 throw new ArgumentException ("opcode"); 96 throw new ArgumentException ("opcode"); 106 throw new ArgumentException ("opcode"); 115 throw new ArgumentException ("opcode"); 130 throw new ArgumentException ("opcode"); 144 throw new ArgumentException ("opcode"); 152 throw new ArgumentException ("opcode"); 160 throw new ArgumentException ("opcode"); 168 throw new ArgumentException ("opcode"); 179 throw new ArgumentException ("opcode"); 189 throw new ArgumentException ("opcode"); 200 throw new ArgumentException ("opcode"); 211 throw new ArgumentException ("opcode"); 393 throw new ArgumentException ("Instruction not in method body");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Cil\ExceptionHandlerCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (ExceptionHandler).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Cil\InstructionCollection.cs (1)
86 throw new ArgumentException ("Must be of type " + typeof (Instruction).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Cil\ScopeCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (Scope).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Cil\VariableDefinitionCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (VariableDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Signatures\SignatureWriter.cs (1)
478 throw new ArgumentException ("tc");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ArrayDimensionCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (ArrayDimension).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\AssemblyNameReference.cs (2)
186 throw new ArgumentException ("Name can not be empty"); 200 throw new ArgumentException ("Malformed name");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\AssemblyNameReferenceCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (AssemblyNameReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ConstraintCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (TypeReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ConstructorCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (MethodDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\CustomAttributeCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (CustomAttribute).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\EventDefinitionCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (EventDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\FieldDefinitionCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (FieldDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\GenericArgumentCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (TypeReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\GenericParameterCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (GenericParameter).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\InterfaceCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (TypeReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\MemberReferenceCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (MemberReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\MethodDefinitionCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (MethodDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ModuleDefinition.cs (3)
198 throw new ArgumentException ("The context parameter does not belongs to this module"); 213 throw new ArgumentException ("The context parameter is not a generic type"); 460 throw new ArgumentException ("The context parameter does not belongs to this module");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ModuleDefinitionCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (ModuleDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ModuleReferenceCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (ModuleReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\NestedTypeCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (TypeDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\OverrideCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (MethodReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ParameterDefinitionCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (ParameterDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\PropertyDefinitionCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (PropertyDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ReflectionWriter.cs (1)
1026 throw new ArgumentException ("Non valid element for a constant");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ResourceCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (Resource).FullName);
CodeGenerator (1)
HttpUtilities\HttpUtilities.cs (1)
251throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "MethodAsciiString {0} length is greather than {1}", method, length));
Crossgen2Tasks (2)
CommonFilePulledFromSdkRepo\Logger.cs (2)
126throw new ArgumentException( 135throw new ArgumentException(
dotnet-openapi (12)
Commands\AddProjectCommand.cs (1)
49throw new ArgumentException($"{SourceProjectArgName} of '{sourceFile}' was not valid. Valid values must be project file(s)");
Commands\BaseCommand.cs (9)
104throw new ArgumentException($"The project '{project}' does not exist."); 112throw new ArgumentException("No project files were found in the current directory. Either move to a new directory or provide the project explicitly"); 116throw new ArgumentException("More than one project was found in this directory, either remove a duplicate or explicitly provide the project."); 218throw new ArgumentException("dotnet was not found on the path."); 235throw new ArgumentException($"Adding package `{packageId}` to `{projectFile.Directory}` took longer than {timeout} seconds."); 251throw new ArgumentException($"Adding package `{packageId}` to `{projectFile.Directory}` returned ExitCode `{process.ExitCode}` and gave error `{error}` and output `{output}`"); 286throw new ArgumentException($"The given url returned '{response.StatusCode}', indicating failure. The url might be wrong, or there might be a networking issue."); 432throw new ArgumentException($"Invalid value '{value}' given as code generator."); 518throw new ArgumentException($"File '{destinationPath}' already exists. Aborting to avoid conflicts. Provide the '--output-file' argument with an unused file to resolve.");
Commands\RefreshCommand.cs (2)
53throw new ArgumentException("There was no OpenAPI reference to refresh with the given URL."); 62throw new ArgumentException("'dotnet openapi refresh' must be given a URL");
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
28throw new ArgumentException(SecretsHelpersResources.FormatError_InvalidSecretsId(newSecretsId));
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
28throw new ArgumentException(SecretsHelpersResources.FormatError_InvalidSecretsId(newSecretsId));
illink (19)
ILLink.RoslynAnalyzer (9)
DataFlowAnalyzerContext.cs (1)
20 throw new System.ArgumentException ($"Analyzer {analyzer.GetType ().Name} is not in the cache");
src\tools\illink\src\ILLink.Shared\DiagnosticId.cs (1)
240 _ => throw new ArgumentException ($"The provided diagnostic id '{diagnosticId}' does not fall into the range of supported warning codes 2001 to 6000 (inclusive).")
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (6)
328 _ => throw new ArgumentException ($"Reflection call '{calledMethod.GetDisplayName ()}' inside '{GetContainingSymbolDisplayName ()}' is of unexpected member type."), 339 _ => throw new ArgumentException ($"Reflection call '{calledMethod.GetDisplayName ()}' inside '{GetContainingSymbolDisplayName ()}' is of unexpected member type."), 380 _ => throw new ArgumentException ($"Reflection call '{calledMethod.GetDisplayName ()}' inside '{GetContainingSymbolDisplayName ()}' is of unexpected member type."), 433 throw new ArgumentException ($"Reflection call '{calledMethod.GetDisplayName ()}' inside '{GetContainingSymbolDisplayName ()}' is an unexpected intrinsic."); 595 _ => throw new ArgumentException ($"Reflection call '{calledMethod.GetDisplayName ()}' inside '{GetContainingSymbolDisplayName ()}' is of unexpected member type."), 620 throw new ArgumentException ($"Error processing reflection call '{calledMethod.GetDisplayName ()}' inside {GetContainingSymbolDisplayName ()}. Unexpected member kind.");
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\WellKnownType.cs (1)
41 _ => throw new System.ArgumentException (type.ToString ())
ILLink.Tasks (6)
LinkTask.cs (6)
373 throw new ArgumentException ($"optimization metadata {optimization} must be True or False"); 382 throw new ArgumentException ($"TrimmerSingleWarn metadata must be True or False"); 454 throw new ArgumentException ("custom data requires \"Value\" metadata"); 464 throw new ArgumentException ("feature settings require \"Value\" metadata"); 483 throw new ArgumentException ("custom step requires \"Type\" metadata"); 490 throw new ArgumentException ("custom step may not have both \"BeforeStep\" and \"AfterStep\" metadata");
installer.tasks (3)
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (1)
56?? throw new ArgumentException($"{item.ItemSpec} specifies no Branch.");
StaticFileRegeneration\TpnDocument.cs (1)
47throw new ArgumentException($"No sections found.");
StaticFileRegeneration\TpnSectionHeader.cs (1)
108throw new ArgumentException(
InteropClient (1)
InteropClient.cs (1)
281throw new ArgumentException("Unknown test case " + options.TestCase);
LibraryBuilder (4)
LibraryBuilder.cs (1)
129throw new ArgumentException($"{TargetOS} is not yet supported by the librarybuilder task.");
src\tasks\Common\Utils.cs (3)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTokenSerializerTest.cs (1)
168throw new ArgumentException("Invalid salt value in data");
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\VirtualChars\VirtualCharSequence.cs (2)
58throw new ArgumentException("Span start out of range."); 63throw new ArgumentException("Span end out of range.");
Microsoft.AspNetCore.App.Analyzers.Test (5)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (5)
124throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw multiple occurrences of {0}", PositionString)); 137throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", SpanEndString, SpanStartString)); 151throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", NamedSpanEndString, NamedSpanStartString)); 164throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", SpanStartString, SpanEndString)); 169throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", NamedSpanEndString, NamedSpanEndString));
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationScheme.cs (1)
26throw new ArgumentException("handlerType must implement IAuthenticationHandler.");
Microsoft.AspNetCore.Authentication.Negotiate (1)
LdapSettings.cs (1)
89throw new ArgumentException($"{nameof(MachineAccountPassword)} should only be specified when {nameof(MachineAccountName)} is configured.");
Microsoft.AspNetCore.Components (15)
CascadingValue.cs (3)
81throw new ArgumentException($"The parameter '{nameof(Name)}' for component '{nameof(CascadingValue<TValue>)}' does not allow null or empty values."); 90throw new ArgumentException($"The component '{nameof(CascadingValue<TValue>)}' does not accept a parameter with the name '{parameter.Name}'."); 105throw new ArgumentException($"Missing required parameter '{nameof(Value)}' for component '{GetType().Name}'.");
LayoutAttribute.cs (1)
25throw new ArgumentException($"Invalid layout type: {layoutType.FullName} " +
NavigationManager.cs (3)
251throw new ArgumentException(message); 277throw new ArgumentException(message); 557throw new ArgumentException(message);
PersistentComponentState.cs (1)
84throw new ArgumentException($"There is already a persisted object under the same key '{key}'");
Rendering\RenderTreeBuilder.cs (2)
424throw new ArgumentException($"The {nameof(frame.FrameType)} must be {RenderTreeFrameType.Attribute}."); 502throw new ArgumentException($"The component type must implement {typeof(IComponent).FullName}.");
RenderTree\Renderer.cs (1)
700: throw new ArgumentException($"The renderer does not have a component with ID {componentId}.");
RenderTree\StackObjectPool.cs (1)
64throw new ArgumentException($"Attempting to return wrong pooled instance. {nameof(Get)}/{nameof(Return)} calls must form a stack.");
Sections\SectionContent.cs (1)
104throw new ArgumentException($"Unknown parameter '{param.Name}'");
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
381throw new ArgumentException($"An element with the key '{key}' already exists in the {nameof(RouteValueDictionary)}.");
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
734throw new ArgumentException(Resources.FormatTemplateRoute_InvalidLiteral(content));
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
113throw new ArgumentException("Unsupported Language");
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
103throw new ArgumentException(Resources.FormatTypeMustDeriveFromType(componentType, typeof(IComponent)));
Microsoft.AspNetCore.Components.Forms (7)
FieldIdentifier.cs (7)
117throw new ArgumentException("The provided expression must evaluate to a non-null value."); 132throw new ArgumentException("The provided expression must evaluate to a non-null value."); 137throw new ArgumentException($"The provided expression contains a {accessorBody.GetType().Name} which is not supported. {nameof(FieldIdentifier)} only supports simple member accessors (fields, properties) of an object."); 149throw new ArgumentException($"The provided expression contains a {accessorBody.GetType().Name} which is not supported. {nameof(FieldIdentifier)} only supports simple member accessors (fields, properties) of an object."); 163value = model.Value ?? throw new ArgumentException("The provided expression must evaluate to a non-null value."); 177throw new ArgumentException("The provided expression must evaluate to a non-null value."); 209throw new ArgumentException("The provided expression must evaluate to a non-null value.");
Microsoft.AspNetCore.Components.QuickGrid (2)
Columns\GridSort.cs (2)
140throw new ArgumentException(ExpressionNotRepresentableMessage); 165throw new ArgumentException(ExpressionNotRepresentableMessage);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
113throw new ArgumentException("Unsupported Language");
Microsoft.AspNetCore.Components.Server (4)
Circuits\CircuitRegistry.cs (1)
79throw new ArgumentException($"Circuit with identity {circuitHost.CircuitId} is already registered.");
Circuits\RemoteJSDataStream.cs (1)
50throw new ArgumentException($"SignalR MaximumIncomingBytes must be at least 1 kb.");
Circuits\RemoteJSRuntime.cs (1)
157throw new ArgumentException($"The stream {streamId} is already pending.");
src\Components\Shared\src\RenderBatchWriter.cs (1)
201throw new ArgumentException($"Unsupported frame type: {frame.FrameType}");
Microsoft.AspNetCore.Components.Web (4)
JSComponents\JSComponentInterop.cs (2)
70throw new ArgumentException($"There is no registered JS component with identifier '{identifier}'."); 137throw new ArgumentException($"There is no declared parameter named '{parameterName}', so the supplied object cannot be deserialized.");
Routing\NavigationLock.cs (1)
61throw new ArgumentException($"The component '{nameof(NavigationLock)}' does not accept a parameter with the name '{parameter.Name}'.");
WebEventData\ChangeEventArgsReader.cs (1)
37throw new ArgumentException($"Unsupported {nameof(ChangeEventArgs)} value {jsonElement}.");
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
PullFromJSDataStreamTest.cs (1)
126throw new ArgumentException($"Unexpected call to InvokeAsync, expected byte[] got {typeof(TValue)}");
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
201throw new ArgumentException($"Unsupported frame type: {frame.FrameType}");
Microsoft.AspNetCore.Diagnostics (1)
StatusCodePage\StatusCodePagesMiddleware.cs (1)
30throw new ArgumentException("Missing options.HandleAsync implementation.");
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\Json\JsonConverterHelper.cs (2)
125throw new ArgumentException("Invalid field type"); 221throw new ArgumentException("Invalid field type");
Microsoft.AspNetCore.Http (1)
HeaderDictionary.cs (1)
198throw new ArgumentException("The key is null");
Microsoft.AspNetCore.Http.Abstractions (1)
Extensions\UsePathBaseMiddleware.cs (1)
27throw new ArgumentException($"{nameof(pathBase)} cannot be null or empty.");
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
235throw new ArgumentException($"{nameof(methodInfo)} does not have a declaring type.");
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (1)
55_ => throw new ArgumentException($"Received unexpected HTTP method: {endpoint.HttpMethod}")
Microsoft.AspNetCore.JsonPatch.Tests (1)
WriteOnceDynamicTestObject.cs (1)
111throw new ArgumentException($"Value for {key} already exists");
Microsoft.AspNetCore.Localization (1)
ApplicationBuilderExtensions.cs (1)
86throw new ArgumentException(Resources.Exception_CulturesShouldNotBeEmpty);
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ActualApiResponseMetadata.cs (1)
30public int StatusCode => _statusCode ?? throw new ArgumentException("Status code is not available when IsDefaultResponse is true");
Microsoft.AspNetCore.Mvc.Core (11)
ActionConstraints\HttpMethodActionConstraint.cs (1)
41throw new ArgumentException($"{nameof(httpMethods)} cannot contain null or empty strings.");
ActionResultOfT.cs (2)
28throw new ArgumentException(error); 44throw new ArgumentException(error);
Controllers\DefaultControllerActivator.cs (2)
34throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 43throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Controllers\DefaultControllerFactory.cs (1)
45throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Formatters\MediaType.cs (1)
64throw new ArgumentException(Resources.FormatArgument_InvalidOffsetLength(nameof(offset), nameof(length)));
Infrastructure\ModelStateInvalidFilter.cs (1)
34throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
ModelBinding\Validation\ValidationVisitor.cs (1)
173throw new ArgumentException(Resources.FormatValidationVisitor_ContainerCannotBeSpecified(metadata.MetadataKind));
Routing\UrlHelperFactory.cs (2)
25throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 32throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\ControllerActionInvokerTest.cs (1)
1877throw new ArgumentException("Argument Exception");
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
HtmlGenerationWithCultureTest.cs (1)
190throw new ArgumentException($"Document does not contain element that matches the selector {selector}: " + Environment.NewLine + document.DocumentElement.OuterHtml);
Infrastructure\IHtmlDocumentExtensions.cs (1)
16throw new ArgumentException($"Document does not contain element that matches the selector {selector}: " + Environment.NewLine + document.DocumentElement.OuterHtml);
Microsoft.AspNetCore.Mvc.Razor (1)
Compilation\CompiledViewDescriptor.cs (1)
46throw new ArgumentException(Resources.FormatCompiledViewDescriptor_NoData(nameof(item), nameof(attribute)));
Microsoft.AspNetCore.Mvc.RazorPages (1)
PageResult.cs (1)
54throw new ArgumentException(Resources.FormatPageViewResult_ContextIsInvalid(
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\DistributedCacheTagHelperFormatter.cs (1)
22throw new ArgumentException(
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ExpressionHelper.cs (1)
208throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
ViewComponents\DefaultViewComponentActivator.cs (1)
43throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
DefaultDisplayTemplatesTest.cs (1)
353throw new ArgumentException(expectedMessage);
Microsoft.AspNetCore.OutputCaching (1)
Memory\MemoryOutputCacheStore.cs (1)
88throw new ArgumentException(Resources.TagCannotBeNull);
Microsoft.AspNetCore.RateLimiting.Tests (2)
TestPartitionedRateLimiter.cs (2)
38throw new ArgumentException("Tests only support 1 permit at a time"); 64throw new ArgumentException("Tests only support 1 permit at a time");
Microsoft.AspNetCore.Rewrite (5)
ApacheModRewrite\RuleBuilder.cs (3)
98throw new ArgumentException("Invalid operation for integer comparison."); 121throw new ArgumentException("Invalid operation for string comparison."); 149throw new ArgumentException("Invalid operation for property comparison");
RedirectToNonWwwRule.cs (1)
27throw new ArgumentException($"One or more {nameof(domains)} must be provided.");
RedirectToWwwRule.cs (1)
27throw new ArgumentException($"One or more {nameof(domains)} must be provided.");
Microsoft.AspNetCore.Routing (10)
Matching\CandidateSet.cs (1)
43throw new ArgumentException($"The provided {nameof(endpoints)}, {nameof(values)}, and {nameof(scores)} must have the same length.");
Patterns\RoutePatternFactory.cs (9)
734throw new ArgumentException(Resources.FormatTemplateRoute_InvalidLiteral(content)); 775throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 798throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 825throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 830throw new ArgumentException(Resources.TemplateRoute_OptionalCannotHaveDefaultValue); 859throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 864throw new ArgumentException(Resources.TemplateRoute_OptionalCannotHaveDefaultValue); 895throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 900throw new ArgumentException(Resources.TemplateRoute_OptionalCannotHaveDefaultValue);
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
265throw new ArgumentException("An item with the same key has already been added.");
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
265throw new ArgumentException("An item with the same key has already been added.");
Microsoft.AspNetCore.Server.IntegrationTesting (10)
Deployers\ApplicationDeployer.cs (1)
34throw new ArgumentException($"Invalid ServerType '{DeploymentParameters.ServerType}'.");
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (6)
39throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerName}' for {nameof(RemoteWindowsDeploymentParameters.ServerName)}"); 44throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerAccountName}' for {nameof(RemoteWindowsDeploymentParameters.ServerAccountName)}." + 50throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerAccountPassword}' for {nameof(RemoteWindowsDeploymentParameters.ServerAccountPassword)}." + 57throw new ArgumentException($"Invalid value '{_deploymentParameters.DotnetRuntimePath}' for {nameof(RemoteWindowsDeploymentParameters.DotnetRuntimePath)}. " + 63throw new ArgumentException($"Invalid value for {nameof(RemoteWindowsDeploymentParameters.RemoteServerFileSharePath)}." + 69throw new ArgumentException($"Invalid value for {nameof(RemoteWindowsDeploymentParameters.ApplicationBaseUriHint)}.");
TestMatrix.cs (3)
96throw new ArgumentException("No servers were specified."); 102throw new ArgumentException("No TFMs were specified."); 160throw new ArgumentException(server.ToString());
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpHeaders.cs (1)
112throw new ArgumentException(CoreStrings.KeyAlreadyExists);
ListenOptionsHttpsExtensions.cs (1)
254throw new ArgumentException($"{nameof(TlsHandshakeCallbackOptions.OnConnection)} must not be null.");
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
265throw new ArgumentException("An item with the same key has already been added.");
Microsoft.AspNetCore.SignalR.Common (1)
Protocol\CompletionMessage.cs (1)
41throw new ArgumentException($"Expected either '{nameof(error)}' or '{nameof(result)}' to be provided, but not both");
Microsoft.AspNetCore.SpaServices.Extensions (1)
StaticFiles\DefaultSpaStaticFileProvider.cs (1)
26throw new ArgumentException($"The {nameof(options.RootPath)} property " +
Microsoft.AspNetCore.StaticFiles (1)
Infrastructure\SharedOptions.cs (1)
34throw new ArgumentException("Request path must not end in a slash");
Microsoft.AspNetCore.WebUtilities (1)
FormPipeReader.cs (1)
58throw new ArgumentException("UTF7 is unsupported and insecure. Please select a different encoding.");
Microsoft.Build (9)
Collections\RetrievableEntryHashSet\HashSet.cs (3)
640throw new ArgumentException("index"); 679throw new ArgumentException("arrayIndex"); 784throw new ArgumentException("newSize");
ErrorUtilities.cs (1)
523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName));
Graph\GraphBuilder.cs (1)
256throw new ArgumentException(
Graph\ParallelWorkSet.cs (1)
83throw new ArgumentException("Degree of parallelism must be a positive integer.");
Graph\ProjectGraph.cs (1)
795throw new ArgumentException(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("OM_TargetNameNullOrEmpty", nameof(GetTargetLists)));
Instance\ProjectInstance.cs (2)
917throw new ArgumentException(nameof(elementsCollection)); 929throw new ArgumentException(nameof(elementsDictionary));
Microsoft.Build.Engine (2)
Shared\ErrorUtilities.cs (2)
577throw new ArgumentException(ResourceUtilities.FormatResourceString("Shared.ParameterCannotHaveZeroLength", parameterName)); 626throw new ArgumentException(ResourceUtilities.FormatResourceString("Shared.ParametersMustHaveTheSameLength", parameter1Name, parameter2Name));
Microsoft.Build.Engine.OM.UnitTests (2)
ErrorUtilities.cs (1)
523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName));
TransientIO.cs (1)
85throw new ArgumentException(nameof(relative));
Microsoft.Build.Engine.UnitTests (8)
BackEnd\BuildResult_Tests.cs (1)
319result.AddResultsForTarget("omega", new TargetResult(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult(new ArgumentException("The argument was invalid"))));
BackEnd\CustomTaskHelper.cs (1)
61throw new ArgumentException(builder.ToString());
BackEnd\MockHost.cs (1)
204_ => throw new ArgumentException("Unexpected type " + type),
BackEnd\TargetBuilder_Tests.cs (1)
1823_ => throw new ArgumentException("Unexpected type " + type),
BackEnd\TargetEntry_Tests.cs (1)
1323_ => throw new ArgumentException("Unexpected type " + type),
BackEnd\TaskBuilder_Tests.cs (1)
1371_ => throw new ArgumentException("Unexpected type " + type),
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (2)
116throw new ArgumentException("An item with the same key has already been added."); 153throw new ArgumentException("The number of elements in the source is greater than the available space from index to the end of the destination array.");
Microsoft.Build.Framework (5)
HashHelpers.cs (1)
63throw new ArgumentException(SR.Arg_HTCapacityOverflow);
ThrowHelper.cs (4)
69throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 116return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 177throw new ArgumentException(SR.Argument_InvalidArrayType); 200return new ArgumentException(GetResourceString(resource));
Microsoft.Build.Tasks.Core (24)
ErrorUtilities.cs (1)
523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName));
ManifestUtil\mansign2.cs (2)
1193throw new ArgumentException("value"); 1217throw new ArgumentException("value");
ManifestUtil\SecurityUtil.cs (1)
578throw new ArgumentException("TargetFrameworkVersion");
ManifestUtil\TrustInfo.cs (1)
505throw new ArgumentException("Partial trust is not supported.");
ResourceHandling\MSBuildResXReader.cs (4)
339throw new ArgumentException(nameof(stringValue)); 345throw new ArgumentException(nameof(stringValue)); 355throw new ArgumentException(nameof(stringValue)); 361throw new ArgumentException(nameof(stringValue));
ResourceHandling\NameUtilities.cs (1)
23throw new ArgumentException(nameof(assemblyQualifiedName));
system.design\stronglytypedresourcebuilder.cs (1)
172throw new ArgumentException(SR.GetString(SR.InvalidIdentifier, className));
XmlPeek.cs (4)
198throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPeek.NamespacesParameterNoAttribute", prefixAttr)); 205throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPeek.NamespacesParameterNoAttribute", uriAttr)); 237throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPeek.XmlInput.TooMany")); 242throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPeek.XmlInput.TooFew"));
XmlPoke.cs (2)
185throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPoke.NamespacesParameterNoAttribute", prefixAttr)); 192throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPoke.NamespacesParameterNoAttribute", uriAttr));
XslTransformation.cs (7)
235throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XslTransform.XsltParameterNoAttribute", "Name")); 240throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XslTransform.XsltParameterNoAttribute", "Value")); 276throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XmlInput.TooMany")); 280throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XmlInput.TooFew")); 385throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XsltInput.TooMany")); 389throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XsltInput.TooFew")); 528throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XslTransform.MustSpecifyType", assemblyPath));
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
208throw new ArgumentException("Expected log setter to be used only to reset the log to empty.");
Microsoft.Build.Utilities.Core (1)
ErrorUtilities.cs (1)
523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName));
Microsoft.DotNet.Build.Tasks.Feed (5)
src\BlobUrlInfo.cs (2)
49throw new ArgumentException(string.Format("Blob URL host name {0} should be of the form <account name>.<endpoint>", hostName)); 62throw new ArgumentException(string.Format("Blob URL path {0} should have a container and blob path", path));
src\common\AzureStorageUtils.cs (1)
216throw new ArgumentException("An attempt to get the MIME mapping of an empty path was made.");
src\model\SetupTargetFeedConfigV3.cs (2)
77throw new ArgumentException("Parameters 'InstallersAzureAccountKey' is empty."); 82throw new ArgumentException("Parameters 'ChecksumsAzureAccountKey' is empty.");
Microsoft.DotNet.Build.Tasks.Installers (1)
src\BuildFPMToolPreReqs.cs (1)
175throw new ArgumentException(
Microsoft.DotNet.Build.Tasks.Packaging (1)
PackageItem.cs (1)
45throw new ArgumentException($"Recursive wildcards \"**\" are not permitted in source paths for packages: {SourcePath}. Recursive directory may impact asset selection and we don't want to attempt to expand the wildcard since the build may not yet be complete.");
Microsoft.DotNet.Build.Tasks.Workloads (7)
Msi\WorkloadPackGroupMsi.wix.cs (1)
171throw new ArgumentException($"ID {id} didn't match existing ID {subdir.Id} for directory {name}.");
Msi\WorkloadPackMsi.wix.cs (1)
96_ => throw new ArgumentException(string.Format(Strings.UnknownWorkloadKind, kind)),
Swix\ComponentSwixProject.cs (1)
36throw new ArgumentException(string.Format(Strings.ComponentMustHaveAtLeastOneDependency, component.Name));
Swix\SwixDependency.cs (2)
60throw new ArgumentException(Strings.SwixDependencyVersionRequired); 65throw new ArgumentException(Strings.SwixDependencyMaxVersionLessThanMinVersion);
Utils.cs (1)
93throw new ArgumentException($"Parameter cannot be empty: ${name}");
WorkloadPackPackage.wix.cs (1)
121_ => throw new ArgumentException(string.Format(Strings.UnknownWorkloadKind, pack.Kind))
Microsoft.DotNet.Git.IssueManager (6)
Clients\AzureDevOpsClient.cs (1)
75throw new ArgumentException(
Helpers\RepositoryHelper.cs (3)
25throw new ArgumentException("A GitHub personal access token is needed for this operation."); 33throw new ArgumentException("An Azure DevOps personal access token is needed for this operation."); 57throw new ArgumentException("A GitHub personal access token is needed for this operation.");
IssueManager.cs (2)
35throw new ArgumentException(nameof(repositoryUrl)); 40throw new ArgumentException(nameof(commit));
Microsoft.DotNet.Helix.JobSender (1)
JobDefinition.cs (1)
167throw new ArgumentException($"Helix API does not contain an entry for {queueId}");
Microsoft.DotNet.Helix.Sdk (3)
FindDotNetCliPackage.cs (3)
198throw new ArgumentException($"'{version}' is not a valid semantic version."); 292throw new ArgumentException($"Invalid value '{Channel}' for parameter {nameof(Channel)}"); 314throw new ArgumentException($"Invalid value '{PackageType}' for parameter {nameof(PackageType)}");
Microsoft.DotNet.SignCheckLibrary (2)
Verification\SignatureVerificationManager.cs (1)
218throw new ArgumentException(String.Format(SignCheckResources.ArgumentNullOrEmpty, "path"));
Verification\SignatureVerificationResult.cs (1)
191throw new ArgumentException("path");
Microsoft.DotNet.SourceBuild.Tasks (2)
src\UsageReport\WritePackageUsageData.cs (2)
95throw new ArgumentException( 271throw new ArgumentException($"Path '{path}' is not within RootDir '{RootDir}'");
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Modeler\EnumOpenApiExtension.cs (1)
28throw new ArgumentException("x-ms-enum extension only accepts an object");
Modeler\PaginatedOpenApiExtension.cs (1)
34throw new ArgumentException("x-ms-paginated extension only accepts an object");
Microsoft.DotNet.VersionTools (28)
src\Automation\LocalVersionsRepoUpdater.cs (2)
34throw new ArgumentException(nameof(localBaseDir)); 38throw new ArgumentException(nameof(versionsRepoPath));
src\BuildManifest\BuildManifestChange.cs (2)
40throw new ArgumentException(nameof(commitMessage)); 45throw new ArgumentException(nameof(orchestratedBuildId));
src\BuildManifest\BuildManifestLocation.cs (2)
29throw new ArgumentException(nameof(gitHubRef)); 34throw new ArgumentException(nameof(gitHubBasePath));
src\BuildManifest\Model\SigningInformationParsingExtensions.cs (15)
33throw new ArgumentException($"Value of FileExtensionSignInfo 'CertificateName' is invalid, must be non-empty."); 38throw new ArgumentException($"Value of FileExtensionSignInfo 'Include' is invalid, must be non-empty."); 43throw new ArgumentException($"Value of FileExtensionSignInfo Include is invalid: '{signInfo.Include}' is not returned by Path.GetExtension('{signInfo.Include}')"); 58throw new ArgumentException( 85throw new ArgumentException($"FileSignInfo should specify file name and extension, not a full path: '{signInfo.Include}'"); 90throw new ArgumentException($"TargetFramework metadata of FileSignInfo '{signInfo.Include}' is invalid: '{signInfo.TargetFramework}'"); 95throw new ArgumentException($"CertificateName metadata of FileSignInfo '{signInfo.Include}' should be non-empty."); 100throw new ArgumentException($"PublicKeyToken metadata of FileSignInfo '{signInfo.Include}' is invalid: '{signInfo.PublicKeyToken}'"); 116throw new ArgumentException( 159throw new ArgumentException($"CertificateName metadata of CertificatesSignInfo is invalid. Must not be empty"); 174throw new ArgumentException( 195throw new ArgumentException($"An invalid strong name was specified in StrongNameSignInfo. Must not be empty."); 200throw new ArgumentException($"PublicKeyToken metadata of StrongNameSignInfo is not a valid public key token: '{signInfo.PublicKeyToken}'"); 205throw new ArgumentException($"CertificateName metadata of StrongNameSignInfo is invalid. Must not be empty"); 221throw new ArgumentException(
src\BuildManifest\Model\XElementParsingExtensions.cs (2)
18throw new ArgumentException( 48throw new ArgumentException(
src\Dependencies\BuildManifest\OrchestratedBuildDependencyInfo.cs (1)
28throw new ArgumentException(
src\Dependencies\BuildManifest\OrchestratedBuildIdentityMatch.cs (3)
26throw new ArgumentException( 41throw new ArgumentException($"Match '{this}' has no commit."); 51throw new ArgumentException($"Could not find attribute '{name}' in '{this}'");
src\Dependencies\Submodule\LatestCommitSubmoduleUpdater.cs (1)
55throw new ArgumentException(
Microsoft.DotNet.VersionTools.Tasks (4)
src\BaseDependenciesTask.cs (2)
329throw new ArgumentException( 444throw new ArgumentException(
src\SubmitPullRequest.cs (2)
137throw new ArgumentException( 156throw new ArgumentException($"{nameof(VstsInstanceName)} is required but not set.");
Microsoft.Extensions.Caching.Hybrid.Tests (1)
DistributedCacheTests.cs (1)
297throw new ArgumentException("small segments not considered"); // a pain to construct
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
47throw new ArgumentException(
Microsoft.Extensions.DependencyInjection (6)
ServiceLookup\CallSiteFactory.cs (4)
53throw new ArgumentException( 78throw new ArgumentException( 117throw new ArgumentException(SR.Format(SR.TrimmingAnnotationsDoNotMatch, implementationType.FullName, serviceType.FullName)); 124throw new ArgumentException(SR.Format(SR.TrimmingAnnotationsDoNotMatch_NewConstraint, implementationType.FullName, serviceType.FullName));
ServiceLookup\ConstantCallSite.cs (1)
18throw new ArgumentException(SR.Format(SR.ConstantCantBeConvertedToServiceType, defaultValue.GetType(), serviceType));
ServiceLookup\ConstructorCallSite.cs (1)
22throw new ArgumentException(SR.Format(SR.ImplementationTypeCantBeConvertedToServiceType, constructorInfo.DeclaringType, serviceType));
Microsoft.Extensions.FileSystemGlobbing (1)
Internal\Patterns\PatternBuilder.cs (1)
82throw new ArgumentException("\"..\" can be only added at the beginning of the pattern.");
Microsoft.Extensions.Logging.Abstractions (1)
LoggerMessage.cs (1)
459throw new ArgumentException(
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Extensions.Primitives (3)
StringValues.cs (1)
379throw new ArgumentException(
ThrowHelper.cs (2)
27throw new ArgumentException(GetResourceText(resource)); 56return new ArgumentException(GetResourceText(resource));
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Interop.SourceGeneration (7)
GeneratedStatements.cs (3)
67throw new ArgumentException("Direction must be ManagedToUnmanaged or UnmanagedToManaged"); 94throw new ArgumentException("CurrentStage must be Invoke"); 128throw new ArgumentException("CurrentStage must be Invoke");
Marshalling\MarshallerHelpers.cs (1)
286throw new ArgumentException("Stub context direction must not be bidirectional.");
Marshalling\MarshallingGeneratorExtensions.cs (1)
94throw new ArgumentException("Context direction must be ManagedToUnmanaged or UnmanagedToManaged");
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
TypeNames.cs (1)
142_ => throw new ArgumentException($"Unexpected CallConv: {callConv}")
Microsoft.JSInterop (6)
Infrastructure\DotNetDispatcher.cs (5)
173throw new ArgumentException($"For instance method calls, '{nameof(assemblyName)}' should be null. Value received: '{assemblyName}'."); 253throw new ArgumentException($"The call to '{methodIdentifier}' expects '{parameterTypes.Length}' parameters, but received '{index}'."); 363throw new ArgumentException($"The assembly '{assemblyKey.AssemblyName}' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")]."); 396throw new ArgumentException($"The type '{type.Name}' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")]."); 502?? throw new ArgumentException($"There is no loaded assembly with the name '{assemblyKey.AssemblyName}'.");
Infrastructure\TaskGenericsUtil.cs (1)
47?? throw new ArgumentException($"The type '{taskType.FullName}' is not inherited from '{typeof(Task).FullName}'.");
Microsoft.Net.Http.Headers (1)
RangeItemHeaderValue.cs (1)
31throw new ArgumentException("Invalid header range.");
Microsoft.NET.Sdk.WebAssembly.Pack.Tasks (3)
src\tasks\Common\Utils.cs (3)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
Microsoft.NET.StringTools.net35 (1)
InternableString.Simple.cs (1)
20throw new ArgumentException(nameof(array));
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
227Return New ArgumentException(Description)
Microsoft.Web.Xdt.Extensions (1)
InsertOrAppendAttribute.cs (1)
64throw new ArgumentException("Expected two ['] characters");
MobileBuildTasks (8)
Android\AndroidProject.cs (1)
159_ => throw new ArgumentException($"{runtimeIdentifier} is not supported for Android"),
Apple\AppleProject.cs (2)
154_ => throw new ArgumentException($"{arch} is not supported"), 165_ => throw new ArgumentException($"{os} is not supported")
Apple\AppleSdk.cs (2)
119throw new ArgumentException("Could not find the path to Xcode via xcode-select. Please make sure Xcode is properly installed."); 139_ => throw new ArgumentException($"{targetOS} does not have a valid platform name")
src\tasks\Common\Utils.cs (3)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
MonoAOTCompiler (3)
src\tasks\Common\Utils.cs (3)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
MonoTargetsTasks (3)
src\tasks\Common\Utils.cs (3)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
MSBuild (2)
ErrorUtilities.cs (1)
523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName));
TerminalLogger\NodeStatus.cs (1)
34throw new ArgumentException("Target should not contain any escape codes, if you want to colorize target use the other constructor.");
MSBuildTaskHost (2)
D\a\_work\1\s\bin\repo\msbuild\src\Shared\ErrorUtilities.cs\ErrorUtilities.cs (1)
523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName));
Immutable\ImmutableDictionary.cs (1)
122throw new ArgumentException(nameof(arrayIndex));
PresentationBuildTasks (14)
MS\Internal\MarkupCompiler\PathInternal.cs (2)
54throw new ArgumentException(nameof(relativeTo)); 60throw new ArgumentException(nameof(path));
src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\Internal\Media\ParserStreamGeometryContext.cs (1)
720throw new ArgumentException(SR.UnknownPathOperationType);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (4)
255throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, "XmlnsDefinitionAttribute")); 275throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, "XmlnsCompatibleWithAttribute")); 323throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsDefinitionAttribute")); 397throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsCompatibleWithAttribute"));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (3)
146throw new ArgumentException(SR.ParserKeysAreStrings); 475throw new ArgumentException(SR.ParserKeysAreStrings); 483throw new ArgumentException(SR.ParserKeysAreStrings);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (3)
353throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 366throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 371throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, attrType.Name));
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\FormatVersion.cs (1)
84throw new ArgumentException(SR.ZeroLengthFeatureID);
PresentationCore (385)
MS\Internal\Automation\SynchronizedInputAdaptor.cs (1)
49throw new ArgumentException(SR.Format(SR.Automation_InvalidSynchronizedInputType, inputType));
MS\Internal\Automation\TextProviderWrapper.cs (1)
66throw new ArgumentException(SR.Format(SR.TextProvider_InvalidChild, "childElement"));
MS\Internal\Automation\TextRangeProviderWrapper.cs (3)
62throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "range")); 72throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "targetRange")); 135throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "targetRange"));
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
734throw new ArgumentException(SR.Collection_BadRank);
MS\Internal\FontFace\CompositeFontInfo.cs (1)
63throw new ArgumentException(SR.FamilyMap_TargetNotSet);
MS\Internal\FontFace\CompositeFontParser.cs (5)
38throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 54throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 62throw new ArgumentException(SR.Format(SR.PropertyMustBeGreaterThanZero, propertyName)); 70throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 78throw new ArgumentException(SR.Format(SR.PropertyCannotBeNegative, propertyName));
MS\Internal\FontFace\TypefaceCollection.cs (1)
76throw new ArgumentException(SR.Collection_BadRank);
MS\Internal\Ink\ExtendedProperty.cs (1)
35throw new ArgumentException(SR.InvalidGuid);
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (7)
165throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Input buffer passed was shorter than expected")); 170throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("output buffer length was zero")); 210throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Input buffer was too short (must be at least 3 bytes)")); 250throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid decompression algo byte")); 278throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid compression specified or computed by FindPropAlgoByte")); 325throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("input.Length must be at least 2")); 335throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus isf, we don't decompress property data with lz"));
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (1)
790throw new ArgumentException(SR.InvalidGuid);
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (5)
145throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("ISF size is larger than maximum stream size")); 154throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Drawing Attribute tag embedded in ISF stream does not match guid table")); 165throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid PenTip value found in ISF stream")); 229throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("ISF size if greater then maximum stream size")); 236throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected"));
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (3)
454throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus GorillaEncodingType passed to compress")); 494throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus GorillaEncodingType passed to GetDataFromReader")); 639throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus GorillaEncodingType passed to Uncompress"));
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (2)
118throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Tag is outside of the known guid tag range")); 142throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Tag is outside of the known guid tag range"));
MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (1)
253throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("invalid huffman encoded data"));
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
74throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("invalid codec computed"));
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
357throw new ArgumentException(SR.InvalidStream); 376throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 487throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 521throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 584throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 597throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 619throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 633throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 682throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 780throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 795throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 1222throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid argument passed to ReliableRead"));
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (2)
299throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("MetricEntryType was persisted with Never flag which should never happen")); 446throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("MetricEntry cannot be null"));
MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (1)
99throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("invalid input in MultiByteCodec.Decode"));
MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (1)
328throw new ArgumentException(SR.InvalidDataTypeForExtendedProperty);
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (18)
84throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Stroke size (" + 164throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Packet buffer overflowed the ISF stream")); 190throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table")); 203throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 238throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 252throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 261throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 270throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 278throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 287throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 294throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected")); 314throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table")); 338throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 373throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 399throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 420throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 494throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Buffer range is smaller than expected expected size")); 526throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Button data length not equal to expected length"));
MS\Internal\Ink\Renderer.cs (3)
446throw new System.ArgumentException(SR.DuplicateStrokeAdded); 474throw new System.ArgumentException(SR.UnknownStroke3); 491throw new System.ArgumentException(SR.UnknownStroke1);
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (4)
704throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 711throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 729throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 736throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges"));
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
328throw new ArgumentException(SR.InvalidPartName);
MS\Internal\IO\Packaging\NetStream.cs (2)
263throw new ArgumentException(SR.SeekNegative); 290throw new ArgumentException(SR.SeekNegative);
MS\Internal\Media\ParserStreamGeometryContext.cs (1)
720throw new ArgumentException(SR.UnknownPathOperationType);
MS\Internal\Media\VisualTreeUtils.cs (1)
226throw new ArgumentException(SR.Visual_NotAVisual);
MS\Internal\Media\XamlSerializationHelper.cs (1)
357throw new ArgumentException(SR.FloatUnknownBamlType);
MS\Internal\PartialArray.cs (1)
162throw new ArgumentException(
MS\Internal\TextFormatting\LineServicesRun.cs (1)
933throw new ArgumentException(SR.CompileFeatureSet_InvalidTypographyProperties);
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
400throw new ArgumentException(SR.OptimalParagraphMustWrap);
MS\Internal\TextFormatting\TextRunCacheImp.cs (5)
130throw new ArgumentException(SR.TextRunPropertiesCannotBeNull); 133throw new ArgumentException(SR.Format(SR.PropertyOfClassMustBeGreaterThanZero, "FontRenderingEmSize", "TextRunProperties")); 138throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeGreaterThan, "FontRenderingEmSize", "TextRunProperties", realMaxFontRenderingEmSize)); 143throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeNull, "CultureInfo", "TextRunProperties")); 146throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeNull, "Typeface", "TextRunProperties"));
MS\Internal\TextFormatting\TextStore.cs (1)
2378throw new ArgumentException(SR.TextObjectMetrics_WidthOutOfRange);
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
204throw new ArgumentException(
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
147throw new ArgumentException(
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
323throw(new System.ArgumentException(key.ToString()));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
60throw new ArgumentException(SR.Collection_BadRank);
System\Windows\clipboard.cs (5)
94throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 183throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 275throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 292throw new ArgumentException(SR.Format(SR.DataObject_FileDropListIsEmpty, fileDropList)); 303throw new ArgumentException(SR.Format(SR.DataObject_FileDropListHasInvalidFileDropPath, fileDropList));
System\Windows\DataFormat.cs (1)
41throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed);
System\Windows\DataFormats.cs (1)
61throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed);
System\Windows\dataobject.cs (10)
104throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 135throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 185throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 201throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 243throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 261throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 308throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 341throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 489throw new ArgumentException(SR.Format(SR.DataObject_FileDropListIsEmpty, fileDropList)); 500throw new ArgumentException(SR.Format(SR.DataObject_FileDropListHasInvalidFileDropPath, e));
System\Windows\DataObjectPastingEventArgs.cs (4)
65throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 70throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, formatToApply)); 138throw new ArgumentException(SR.DataObject_DataObjectMustHaveAtLeastOneFormat); 167throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, value));
System\Windows\DragEventArgs.cs (1)
161throw new ArgumentException(SR.Format(SR.DragDrop_DragDropEffectsInvalid, "value"));
System\Windows\EventHandlersStore.cs (2)
157throw new ArgumentException(SR.HandlerTypeIllegal); 191throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventManager.cs (3)
77throw new ArgumentException(SR.Format(SR.DuplicateEventName, name, ownerType)); 166throw new ArgumentException(SR.ClassTypeIllegal); 171throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventRoute.cs (2)
135throw new ArgumentException(SR.SourceNotSet); 140throw new ArgumentException(SR.Mismatched_RoutedEvent);
System\Windows\FreezableCollection.cs (6)
109throw new System.ArgumentException(SR.Collection_NoNull); 221throw new System.ArgumentException(SR.Collection_NoNull); 338throw new System.ArgumentException(SR.Collection_NoNull); 509throw new ArgumentException(SR.Collection_BadRank); 667throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "T")); 723throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Generated\ContentElement.cs (4)
94throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 161throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 538throw new ArgumentException(SR.HandlerTypeIllegal); 593throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Generated\TextDecorationCollection.cs (7)
139throw new System.ArgumentException(SR.Collection_NoNull); 247throw new System.ArgumentException(SR.Collection_NoNull); 410throw new ArgumentException(SR.Collection_BadRank); 514throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextDecoration")); 540throw new System.ArgumentException(SR.Collection_NoNull); 931throw new System.ArgumentException(SR.Collection_NoNull); 948throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Generated\UIElement.cs (4)
94throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 161throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 538throw new ArgumentException(SR.HandlerTypeIllegal); 593throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Generated\UIElement3D.cs (2)
335throw new ArgumentException(SR.HandlerTypeIllegal); 390throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Ink\Events.cs (2)
44throw new ArgumentException(SR.Format(SR.CannotBothBeNull, "added", "removed")); 110throw new ArgumentException(SR.Format(SR.CannotBothBeNull, "newValue", "previousValue"));
System\Windows\Ink\Stroke.cs (1)
522throw new ArgumentException(SR.InvalidStylusPointCollectionZeroCount);
System\Windows\Ink\Stroke2.cs (2)
130throw new ArgumentException(SR.EmptyArray); 161throw new ArgumentException(SR.EmptyArray);
System\Windows\Ink\StrokeCollection2.cs (2)
248throw new ArgumentException(SR.EmptyArray); 298throw new ArgumentException(SR.EmptyArray);
System\Windows\Input\AccessKeyManager.cs (1)
138throw new ArgumentException(SR.Format(SR.AccessKeyManager_NotAUnicodeCharacter, "key"));
System\Windows\Input\Command\KeyBinding.cs (1)
97throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(KeyGesture)));
System\Windows\Input\Command\MouseBinding.cs (1)
114throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(MouseGesture)));
System\Windows\Input\Cursor.cs (5)
41throw new ArgumentException(SR.Format(SR.InvalidCursorType, cursorType)); 72throw new ArgumentException(SR.Format(SR.Cursor_UnsupportedFormat , cursorFile)); 210throw new ArgumentException(SR.Format(SR.Cursor_LoadImageFailure, fileName)); 264throw new ArgumentException(SR.Cursor_InvalidStream); 310throw new ArgumentException(SR.Cursor_InvalidStream);
System\Windows\Input\InputMethod.cs (2)
826throw new ArgumentException(SR.Format(SR.InputMethod_InvalidConversionMode, value)); 1077throw new ArgumentException(SR.Format(SR.InputMethod_InvalidSentenceMode, value));
System\Windows\Input\InputScope.cs (1)
182throw new ArgumentException(SR.Format(SR.InputScope_InvalidInputScopeName, "value"));
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (1)
162throw new ArgumentException("stylusPointProperty");
System\Windows\Input\TextComposition.cs (1)
116throw new ArgumentException(SR.TextComposition_NullResultText);
System\Windows\Input\TextCompositionManager.cs (8)
320throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 325throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasStarted, "composition")); 341throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 346throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionNotStarted, "composition")); 351throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasDone, "composition")); 366throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 371throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionNotStarted, "composition")); 376throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasDone, "composition"));
System\Windows\InterOp\HwndKeyboardInputProvider.cs (1)
712throw new ArgumentException(SR.OnlyAcceptsKeyMessages);
System\Windows\InterOp\HwndSource.cs (4)
684throw new ArgumentException(SR.NullHwnd); 1934throw new ArgumentException(SR.KeyboardSinkAlreadyOwned); 2113throw new ArgumentException(SR.OnlyAcceptsKeyMessages); 2301throw new ArgumentException(SR.OnlyAcceptsKeyMessages);
System\Windows\Markup\XamlSerializerUtil.cs (1)
58throw new ArgumentException(SR.Format(SR.NonWhiteSpaceInAddText, s));
System\Windows\Media\Animation\Generated\Animatable.cs (2)
100throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 167throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
System\Windows\Media\Animation\Generated\TimelineCollection.cs (7)
146throw new System.ArgumentException(SR.Collection_NoNull); 254throw new System.ArgumentException(SR.Collection_NoNull); 420throw new ArgumentException(SR.Collection_BadRank); 524throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Timeline")); 550throw new System.ArgumentException(SR.Collection_NoNull); 950throw new System.ArgumentException(SR.Collection_NoNull); 968throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Animation\KeySpline.cs (4)
69throw new ArgumentException(SR.Format( 77throw new ArgumentException(SR.Format( 179throw new ArgumentException(SR.Format( 211throw new ArgumentException(SR.Format(
System\Windows\Media\CharacterMetrics.cs (6)
116throw new ArgumentException(SR.CharacterMetrics_NegativeHorizontalAdvance); 122throw new ArgumentException(SR.CharacterMetrics_NegativeVerticalAdvance); 177throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, field.ToString(), "double")); 183throw new ArgumentException(SR.CharacterMetrics_MissingRequiredField); 192throw new ArgumentException(SR.CharacterMetrics_TooManyFields); 202throw new ArgumentException(SR.CharacterMetrics_MissingRequiredField);
System\Windows\Media\CharacterMetricsDictionary.cs (8)
139throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 157throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 196throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 199throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 214throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 219throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 381throw new ArgumentException(SR.Format(SR.CollectionDuplicateKey, key)); 535throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CharacterMetrics), value.GetType()));
System\Windows\Media\Color.cs (5)
80throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null)); 85throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null)); 500throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 534throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 619throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null));
System\Windows\Media\CompositionTarget.cs (1)
484throw new System.ArgumentException(SR.CompositionTarget_RootVisual_HasParent);
System\Windows\Media\CultureSpecificStringDictionary.cs (6)
128throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 131throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 162throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 165throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 180throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 185throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType));
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (7)
145throw new System.ArgumentException(SR.Collection_NoNull); 253throw new System.ArgumentException(SR.Collection_NoNull); 416throw new ArgumentException(SR.Collection_BadRank); 520throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "BitmapEffect")); 546throw new System.ArgumentException(SR.Collection_NoNull); 937throw new System.ArgumentException(SR.Collection_NoNull); 954throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Effects\PixelShader.cs (1)
113throw new ArgumentException(SR.Effect_SourceUriMustBeFileOrPack);
System\Windows\Media\Effects\ShaderEffect.cs (1)
464throw new ArgumentException(SR.GetResourceString(srid));
System\Windows\Media\EllipseGeometry.cs (1)
48throw new System.ArgumentException(SR.Format(SR.Rect_Empty, "rect"));
System\Windows\Media\FamilyMapCollection.cs (7)
90throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 93throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 104throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 108throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface), elementType)); 111throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 114throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 380throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FontFamilyMap)));
System\Windows\Media\FamilyTypefaceCollection.cs (6)
255throw new ArgumentException(SR.CompositeFont_DuplicateTypeface); 373throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FamilyTypeface))); 383throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 387throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface[]), elementType)); 390throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 393throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
System\Windows\Media\Fonts.cs (1)
329throw new ArgumentException(SR.Collection_BadRank);
System\Windows\Media\Generated\DoubleCollection.cs (2)
382throw new ArgumentException(SR.Collection_BadRank); 470throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "double"));
System\Windows\Media\Generated\DrawingCollection.cs (7)
159throw new System.ArgumentException(SR.Collection_NoNull); 267throw new System.ArgumentException(SR.Collection_NoNull); 432throw new ArgumentException(SR.Collection_BadRank); 536throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Drawing")); 562throw new System.ArgumentException(SR.Collection_NoNull); 980throw new System.ArgumentException(SR.Collection_NoNull); 998throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GeneralTransformCollection.cs (7)
147throw new System.ArgumentException(SR.Collection_NoNull); 255throw new System.ArgumentException(SR.Collection_NoNull); 418throw new ArgumentException(SR.Collection_BadRank); 522throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform")); 548throw new System.ArgumentException(SR.Collection_NoNull); 939throw new System.ArgumentException(SR.Collection_NoNull); 956throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GeometryCollection.cs (7)
159throw new System.ArgumentException(SR.Collection_NoNull); 267throw new System.ArgumentException(SR.Collection_NoNull); 432throw new ArgumentException(SR.Collection_BadRank); 536throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Geometry")); 562throw new System.ArgumentException(SR.Collection_NoNull); 980throw new System.ArgumentException(SR.Collection_NoNull); 998throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GradientStopCollection.cs (7)
147throw new System.ArgumentException(SR.Collection_NoNull); 255throw new System.ArgumentException(SR.Collection_NoNull); 418throw new ArgumentException(SR.Collection_BadRank); 522throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GradientStop")); 548throw new System.ArgumentException(SR.Collection_NoNull); 1042throw new System.ArgumentException(SR.Collection_NoNull); 1059throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\Int32Collection.cs (2)
382throw new ArgumentException(SR.Collection_BadRank); 470throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "int"));
System\Windows\Media\Generated\PathFigureCollection.cs (7)
148throw new System.ArgumentException(SR.Collection_NoNull); 256throw new System.ArgumentException(SR.Collection_NoNull); 419throw new ArgumentException(SR.Collection_BadRank); 523throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathFigure")); 549throw new System.ArgumentException(SR.Collection_NoNull); 1029throw new System.ArgumentException(SR.Collection_NoNull); 1046throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\PathSegmentCollection.cs (7)
147throw new System.ArgumentException(SR.Collection_NoNull); 255throw new System.ArgumentException(SR.Collection_NoNull); 418throw new ArgumentException(SR.Collection_BadRank); 522throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathSegment")); 548throw new System.ArgumentException(SR.Collection_NoNull); 939throw new System.ArgumentException(SR.Collection_NoNull); 956throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\PointCollection.cs (2)
382throw new ArgumentException(SR.Collection_BadRank); 470throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point"));
System\Windows\Media\Generated\TextEffectCollection.cs (7)
147throw new System.ArgumentException(SR.Collection_NoNull); 255throw new System.ArgumentException(SR.Collection_NoNull); 418throw new ArgumentException(SR.Collection_BadRank); 522throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextEffect")); 548throw new System.ArgumentException(SR.Collection_NoNull); 939throw new System.ArgumentException(SR.Collection_NoNull); 956throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\TransformCollection.cs (7)
159throw new System.ArgumentException(SR.Collection_NoNull); 267throw new System.ArgumentException(SR.Collection_NoNull); 432throw new ArgumentException(SR.Collection_BadRank); 536throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform")); 562throw new System.ArgumentException(SR.Collection_NoNull); 980throw new System.ArgumentException(SR.Collection_NoNull); 998throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\VectorCollection.cs (2)
382throw new ArgumentException(SR.Collection_BadRank); 470throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector"));
System\Windows\Media\GlyphRun.cs (1)
444throw new ArgumentException(SR.SidewaysRTLTextIsNotSupported);
System\Windows\Media\GlyphTypeface.cs (2)
1826throw new ArgumentException(SR.Collection_BadRank); 1911throw new ArgumentException(SR.Collection_BadRank);
System\Windows\Media\Imaging\BitmapImage.cs (1)
387throw new System.ArgumentException(SR.Image_NoDecodeFrames);
System\Windows\Media\Imaging\BitmapPalette.cs (1)
132throw new System.ArgumentException(SR.Format(SR.Image_PaletteFixedType, paletteType));
System\Windows\Media\Imaging\BitmapSource.cs (1)
679throw new ArgumentException(SR.Image_InvalidArrayForPixel);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
46throw new ArgumentException(SR.Format(SR.Image_CantBeFrozen, null)); 83throw new ArgumentException(SR.Image_CantBeFrozen);
System\Windows\Media\Imaging\CachedBitmap.cs (1)
151throw new ArgumentException(SR.Image_InvalidArrayForPixel);
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
57throw new ArgumentException(SR.Image_AlphaThresholdOutOfRange);
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
413throw new ArgumentException(SR.Image_InvalidArrayForPixel); 520throw new ArgumentException(SR.Image_InvalidArrayForPixel);
System\Windows\Media\MediaSystem.cs (1)
292throw new ArgumentException(SR.MediaSystem_ApiInvalidContext);
System\Windows\Media\PixelFormatConverter.cs (1)
109throw new ArgumentException(SR.Format(SR.General_Expected_Type,"PixelFormat"));
System\Windows\Media\textformatting\NumberSubstitution.cs (1)
101throw new ArgumentException(SR.SpecificNumberCultureRequired);
System\Windows\Media\textformatting\TextFormatter.cs (1)
129throw new ArgumentException(SR.CurrentDispatcherNotFound);
System\Windows\Media\Visual.cs (2)
2601throw new ArgumentException(SR.Visual_HasParent); 2670throw new ArgumentException(SR.Visual_NotChild);
System\Windows\Media\VisualCollection.cs (5)
194throw new ArgumentException(SR.Collection_BadRank); 362throw new System.ArgumentException(SR.VisualCollection_EntryInUse); 367throw new System.ArgumentException(SR.VisualCollection_VisualHasParent); 468throw new System.ArgumentException(SR.VisualCollection_VisualHasParent); 715throw new System.ArgumentException(SR.VisualCollection_VisualHasParent);
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (7)
143throw new System.ArgumentException(SR.Collection_NoNull); 251throw new System.ArgumentException(SR.Collection_NoNull); 414throw new ArgumentException(SR.Collection_BadRank); 518throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform3D")); 544throw new System.ArgumentException(SR.Collection_NoNull); 935throw new System.ArgumentException(SR.Collection_NoNull); 952throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\MaterialCollection.cs (7)
155throw new System.ArgumentException(SR.Collection_NoNull); 263throw new System.ArgumentException(SR.Collection_NoNull); 428throw new ArgumentException(SR.Collection_BadRank); 532throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Material")); 558throw new System.ArgumentException(SR.Collection_NoNull); 976throw new System.ArgumentException(SR.Collection_NoNull); 994throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Model3DCollection.cs (7)
155throw new System.ArgumentException(SR.Collection_NoNull); 263throw new System.ArgumentException(SR.Collection_NoNull); 428throw new ArgumentException(SR.Collection_BadRank); 532throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Model3D")); 558throw new System.ArgumentException(SR.Collection_NoNull); 976throw new System.ArgumentException(SR.Collection_NoNull); 994throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Point3DCollection.cs (2)
378throw new ArgumentException(SR.Collection_BadRank); 466throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point3D"));
System\Windows\Media3D\Generated\Transform3DCollection.cs (7)
155throw new System.ArgumentException(SR.Collection_NoNull); 263throw new System.ArgumentException(SR.Collection_NoNull); 428throw new ArgumentException(SR.Collection_BadRank); 532throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform3D")); 558throw new System.ArgumentException(SR.Collection_NoNull); 976throw new System.ArgumentException(SR.Collection_NoNull); 994throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Vector3DCollection.cs (2)
378throw new ArgumentException(SR.Collection_BadRank); 466throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector3D"));
System\Windows\Media3D\Generated\Visual3D.cs (2)
100throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 167throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
System\Windows\Media3D\ModelVisual3D.cs (1)
96throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, typeof(Visual3D).Name));
System\Windows\Media3D\Rect3D.cs (4)
79throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 223throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 248throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 273throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative);
System\Windows\Media3D\Size3D.cs (4)
41throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 102throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 127throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 153throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative);
System\Windows\Media3D\Viewport2DVisual3D.cs (2)
380throw new ArgumentException(SR.Visual_HasParent); 411throw new ArgumentException(SR.Visual_NotChild);
System\Windows\Media3D\Visual3DCollection.cs (4)
173throw new ArgumentException(SR.Collection_BadRank); 466throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Visual3D")); 476throw new System.ArgumentException(SR.Collection_NoNull); 483throw new System.ArgumentException(SR.VisualCollection_VisualHasParent);
System\Windows\QueryContinueDragEventArgs.cs (1)
94throw new ArgumentException(SR.Format(SR.DragDrop_DragActionInvalid, "value"));
System\Windows\TextDecorationCollectionConverter.cs (1)
166throw new ArgumentException(SR.Format(SR.InvalidTextDecorationCollectionString, text));
System\Windows\UIElement.cs (4)
1658throw new ArgumentException(SR.SourceNotSet); 1663throw new ArgumentException(SR.Mismatched_RoutedEvent); 1916throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType())); 1953throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType()));
PresentationFramework (260)
Microsoft\Win32\FileDialog.cs (1)
337throw new ArgumentException(SR.FileDialogInvalidFilter);
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
315throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 509throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo))); 513throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
156throw new ArgumentException(SR.Format(SR.InvalidSubTreeProcessor, processorString));
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (4)
212throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 368throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 445throw new ArgumentException("segmentNumber"); 452throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
MS\Internal\Annotations\AnnotationObservableCollection.cs (2)
116throw new ArgumentException(SR.AlreadyHasParent); 130throw new ArgumentException(SR.AlreadyHasParent);
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
226throw new ArgumentException(SR.MoreThanOneAttachedAnnotation);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
210throw new ArgumentException(SR.MoreThanOneAttachedAnnotation); 481throw new ArgumentException(SR.InvalidAttachedAnchor);
MS\Internal\Annotations\TextAnchor.cs (1)
109throw new ArgumentException(SR.Format(SR.NotInAssociatedTree, "textPointer"));
MS\Internal\Controls\ConnectionPointCookie.cs (2)
53ex = new ArgumentException(SR.Format(SR.AxNoEventInterface, eventInterface.Name)); 88throw new ArgumentException(SR.Format(SR.AxNoConnectionPoint, eventInterface.Name));
MS\Internal\Data\RBTree.cs (1)
580throw new ArgumentException(SR.Argument_InvalidOffLen);
MS\Internal\Data\ViewManager.cs (2)
585throw new ArgumentException(SR.Format(SR.CollectionView_WrongType, collectionViewType.Name)); 846throw new ArgumentException(SR.Format(SR.CollectionView_NameTypeDuplicity, collectionViewType, cachedViewType));
MS\Internal\Documents\ContentElementCollection.cs (3)
75throw new ArgumentException(SR.TableCollectionRankMultiDimNotSupported); 83throw new ArgumentException(SR.TableCollectionInvalidOffLen); 115throw new ArgumentException(SR.TableCollectionInvalidOffLen);
MS\Internal\Documents\TableColumnCollectionInternal.cs (3)
149throw new System.ArgumentException(SR.TableCollectionWrongProxyParent); 156throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 285throw new ArgumentException(SR.TableCollectionRangeOutOfRange);
MS\Internal\Documents\TableTextElementCollectionInternal.cs (5)
50throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 115throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 234throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 270throw new System.ArgumentException(SR.TableCollectionWrongProxyParent); 425throw new System.ArgumentException(SR.TableCollectionInOtherCollection);
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (1)
243throw new ArgumentException(SR.CannotSetNegativePosition);
MS\Internal\IO\Packaging\XmlFixedPageInfo.cs (1)
41throw new ArgumentException(SR.Format(SR.UnexpectedXmlNodeInXmlFixedPageInfoConstructor,
MS\Internal\KnownBoxes.cs (3)
17throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative); 36throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative); 53throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative);
MS\Internal\Markup\StaticExtension.cs (3)
73throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, Member)); 81throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, Member)); 91throw new ArgumentException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, "IXamlTypeResolver"));
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (1)
148throw new ArgumentException(nameof(type));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
323throw(new System.ArgumentException(key.ToString()));
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
77throw new ArgumentException(SR.OnlyFlowAndFixedSupported);
System\Windows\Annotations\AnnotationHelper.cs (1)
612throw new ArgumentException(SR.InvalidSelectionPages);
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
79throw new ArgumentException(SR.StreamDoesNotSupportSeek);
System\Windows\Application.cs (11)
389throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString")); 392throw new ArgumentException(SR.AbsoluteUriNotAllowed); 478throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString")); 481throw new ArgumentException(SR.AbsoluteUriNotAllowed); 613throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriResource", "OriginalString")); 617throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed); 645throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriContent", "OriginalString")); 649throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed); 674throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriRemote", "OriginalString")); 680throw new ArgumentException(SR.NonPackSooAbsoluteUriNotAllowed); 1649throw new ArgumentException(SR.Format(SR.WindowPassedShouldBeOnApplicationThread, window.GetType().FullName, this.GetType().FullName));
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
549throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
164throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
141throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
257throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\ComponentResourceKeyConverter.cs (1)
104throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "ComponentResourceKey"));
System\Windows\Condition.cs (3)
57throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, conditionValue, conditionProperty.Name)); 140throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 146throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported);
System\Windows\ConditionCollection.cs (1)
117throw new ArgumentException(SR.MustBeCondition);
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
70throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType()));
System\Windows\Controls\AVElementHelper.cs (1)
107throw new ArgumentException(SR.AudioVideo_InvalidDependencyObject);
System\Windows\Controls\ColumnDefinition.cs (7)
91throw new ArgumentException(SR.GridCollection_DestArrayInvalidRank); 99throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 121throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 326throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 562throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "ColumnDefinitionCollection", "ColumnDefinition")); 567throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, "value", "ColumnDefinitionCollection")); 583throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "ColumnDefinitionCollection", "ColumnDefinition"));
System\Windows\Controls\ContextMenuService.cs (1)
48throw new ArgumentException(SR.ContextMenuInDifferentDispatcher);
System\Windows\Controls\CustomDictionarySources.cs (1)
363throw new ArgumentException(SR.CustomDictionaryNullItem);
System\Windows\Controls\DataGridColumnCollection.cs (1)
503throw new ArgumentException(SR.DataGrid_DuplicateDisplayIndex);
System\Windows\Controls\Decorator.cs (1)
76throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType()));
System\Windows\Controls\FlowDocumentReader.cs (5)
759throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1648throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1683throw new ArgumentException(SR.FlowDocumentReaderCannotDisableAllViewingModes); 1689throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1958throw new ArgumentException(SR.FlowDocumentReaderCanHaveOnlyOneChild);
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1202throw new ArgumentException(SR.FlowDocumentScrollViewerDocumentBelongsToAnotherFlowDocumentScrollViewerAlready); 1855throw new ArgumentException(SR.FlowDocumentScrollViewerCanHaveOnlyOneChild);
System\Windows\Controls\ItemsPanelTemplate.cs (1)
161throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, "ItemsPresenter", templatedParent.GetType().Name));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
887throw new ArgumentException(SR.DocumentViewerPageViewsCollectionEmpty); 897throw new ArgumentException(SR.DocumentViewerOneMasterPage);
System\Windows\Controls\PrintDialog.cs (2)
172throw new System.ArgumentException(SR.Format(SR.PrintDialogZeroNotAllowed, "MinPage")); 192throw new System.ArgumentException(SR.Format(SR.PrintDialogZeroNotAllowed, "MaxPage"));
System\Windows\Controls\RichTextBox.cs (2)
163throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType())); 363throw new ArgumentException(SR.RichTextBox_DocumentBelongsToAnotherRichTextBoxAlready);
System\Windows\Controls\RowDefinition.cs (7)
91throw new ArgumentException(SR.GridCollection_DestArrayInvalidRank); 99throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 121throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 326throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 562throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "RowDefinitionCollection", "RowDefinition")); 567throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, "value", "RowDefinitionCollection")); 583throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "RowDefinitionCollection", "RowDefinition"));
System\Windows\Controls\StickyNote.cs (1)
1789throw new ArgumentException(SR.InvalidInkForeground);
System\Windows\Controls\TextAdaptor.cs (1)
680throw new ArgumentException(SR.TextProvider_InvalidPoint);
System\Windows\Controls\TextBlock.cs (2)
140throw new ArgumentException(SR.Format(SR.TextPanelIllegalParaTypeForIAddChild, "value", value.GetType())); 158throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, parentType.Name, valueType.Name));
System\Windows\Controls\TextRangeAdaptor.cs (3)
513throw new ArgumentException(SR.TextRangeProvider_WrongTextRange); 1754throw new ArgumentException(SR.Format(SR.TextRangeProvider_EmptyStringParameter, "text")); 1857throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidParameterValue, maxLength, "maxLength"));
System\Windows\Controls\UIElementCollection.cs (2)
391throw new System.ArgumentException(SR.Format(SR.Collection_NoNull, "UIElementCollection")); 396throw new System.ArgumentException(SR.Format(SR.Collection_BadType, "UIElementCollection", value.GetType().Name, "UIElement"));
System\Windows\Controls\VirtualizationCacheLength.cs (2)
70throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "cacheBeforeViewport")); 75throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "cacheAfterViewport"));
System\Windows\Controls\WebBrowser.cs (1)
441throw new ArgumentException(SR.NeedToBeComVisible);
System\Windows\ControlTemplate.cs (3)
71throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, _targetType.Name, templatedParent.GetType().Name)); 77throw new ArgumentException(SR.MustNotTemplateUnassociatedControl); 142throw new ArgumentException(SR.Format(SR.InvalidControlTemplateTargetType, targetType.Name));
System\Windows\CornerRadiusConverter.cs (1)
153throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CornerRadius), destinationType.FullName));
System\Windows\Data\BindingListCollectionView.cs (2)
2217throw new ArgumentException(SR.CannotDetermineSortByPropertiesForCollection); 2226throw new ArgumentException(SR.Format(SR.PropertyToSortByNotFoundOnType, typeName, sorts[i].PropertyName));
System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
143throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, nameof(arrayIndex), nameof(array)));
System\Windows\DataTemplate.cs (1)
193throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, "ContentPresenter", templatedParent.GetType().Name));
System\Windows\DataTrigger.cs (2)
80throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 86throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported);
System\Windows\Documents\DocumentSequence.cs (1)
338throw new ArgumentException(SR.IDPInvalidContentPosition);
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
364throw new ArgumentException(SR.Format(SR.NotInAssociatedContainer, "position")); 370throw new ArgumentException(SR.Format(SR.BadFixedTextPosition, "position"));
System\Windows\Documents\DocumentSequenceTextPointer.cs (4)
668throw new ArgumentException(SR.Format(SR.NegativeValue, "startIndex")); 672throw new ArgumentException(SR.Format(SR.StartIndexExceedsBufferSize, startIndex, textBuffer.Length)); 676throw new ArgumentException(SR.Format(SR.NegativeValue, "count")); 680throw new ArgumentException(SR.Format(SR.MaxLengthExceedsBufferSize, count, textBuffer.Length, startIndex));
System\Windows\Documents\FixedDocument.cs (2)
415throw new ArgumentException(SR.IDPInvalidContentPosition); 455throw new ArgumentException(SR.FixedDocumentExpectsDependencyObject);
System\Windows\Documents\FixedTextContainer.cs (2)
331throw new ArgumentException(SR.Format(SR.NotInAssociatedContainer, "position")); 338throw new ArgumentException(SR.Format(SR.BadFixedTextPosition, "position"));
System\Windows\Documents\FixedTextPointer.cs (1)
136throw new ArgumentException(SR.Format(SR.NegativeValue, "count"));
System\Windows\Documents\FlowDocument.cs (2)
1642throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, _typeofThis.Name, value.GetType().Name)); 1648throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, value.GetType().Name));
System\Windows\Documents\Glyphs.cs (12)
315throw new ArgumentException(SR.GlyphsUnicodeStringAndIndicesCannotBothBeEmpty); 416throw new ArgumentException(SR.GlyphsClusterBadCharactersBeforeBracket); 420throw new ArgumentException(SR.GlyphsClusterNoNestedClusters); 424throw new ArgumentException(SR.GlyphsClusterNoMatchingBracket); 438throw new ArgumentException(SR.GlyphsClusterMisplacedSeparator); 475throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort); 575throw new ArgumentException(SR.GlyphsIndexRequiredIfNoUnicode); 578throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort); 607throw new ArgumentException(SR.GlyphsAdvanceWidthCannotBeNegative); 625throw new ArgumentException(SR.GlyphsTooManyCommas); 670throw new ArgumentException(SR.GlyphsIndexRequiredWithinCluster); 673throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort);
System\Windows\Documents\Serialization\SerializerDescriptor.cs (4)
72throw new ArgumentException(SR.SerializerProviderDisplayNameNull); 76throw new ArgumentException(SR.SerializerProviderManufacturerNameNull); 80throw new ArgumentException(SR.SerializerProviderManufacturerWebsiteNull); 84throw new ArgumentException(SR.SerializerProviderDefaultFileExtensionNull);
System\Windows\Documents\Span.cs (3)
103throw new ArgumentException(SR.Format(SR.InDifferentTextContainers, "start", "end")); 107throw new ArgumentException(SR.Format(SR.BadTextPositionOrder, "start", "end")); 120throw new ArgumentException(SR.Format(SR.InDifferentParagraphs, "start", "end"));
System\Windows\Documents\TextElement.cs (6)
105throw new ArgumentException(SR.TextElement_UnmatchedEndPointer); 131throw new ArgumentException(SR.Format(SR.InDifferentScope, "start", "end")); 824throw new ArgumentException(SR.Format(SR.TextSchema_ThisInlineUIContainerHasAChildUIElementAlready, this.GetType().Name, ((InlineUIContainer)this).Child.GetType().Name, value.GetType().Name)); 836throw new ArgumentException(SR.Format(SR.TextSchema_ThisBlockUIContainerHasAChildUIElementAlready, this.GetType().Name, ((BlockUIContainer)this).Child.GetType().Name, value.GetType().Name)); 852throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name)); 859throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name));
System\Windows\Documents\TextElementCollection.cs (6)
256throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 295throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 466throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 605throw new ArgumentException("array"); 612throw new ArgumentException("arrayIndex"); 617throw new ArgumentException(SR.Format(SR.TextElementCollection_CannotCopyToArrayNotSufficientMemory, count, arrayIndex, array.Length));
System\Windows\Documents\TextPointer.cs (6)
295throw new ArgumentException(SR.BadDistance); 1758throw new ArgumentException(SR.Format(SR.NegativeValue, "startIndex")); 1762throw new ArgumentException(SR.Format(SR.StartIndexExceedsBufferSize, startIndex, textBuffer.Length)); 1766throw new ArgumentException(SR.Format(SR.NegativeValue, "count")); 1770throw new ArgumentException(SR.Format(SR.MaxLengthExceedsBufferSize, count, textBuffer.Length, startIndex)); 3911throw new ArgumentException(SR.BadDistance);
System\Windows\Documents\TextRange.cs (2)
795throw new ArgumentException(SR.Format(SR.TextEditorPropertyIsNotApplicableForTextFormatting, formattingProperty.Name)); 864throw new ArgumentException(SR.Format(SR.TextEditorPropertyIsNotApplicableForTextFormatting, formattingProperty.Name));
System\Windows\Documents\TextStore.cs (1)
3366throw new ArgumentException(SR.Format(SR.TextStore_BadIMECharOffset, offset, this.TextContainer.IMECharCount));
System\Windows\Documents\ValidationHelper.cs (5)
47throw new ArgumentException(SR.Format(SR.NotInAssociatedTree, paramName)); 62throw new ArgumentException(SR.Format(SR.InDifferentTextContainers, "startPosition", "endPosition")); 66throw new ArgumentException(SR.Format(SR.BadTextPositionOrder, "startPosition", "endPosition")); 110throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, position.Parent.GetType().Name, child.GetType().Name)); 118throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, child.GetType().Name));
System\Windows\Documents\WinRTSpellerInterop.cs (1)
439throw new ArgumentException(SR.Format(SR.CustomDictionaryFailedToLoadDictionaryUri, lexiconFilePath));
System\Windows\Documents\WpfPayload.cs (1)
494throw new ArgumentException(SR.WpfPayload_InvalidImageSource);
System\Windows\EventSetter.cs (3)
97throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "EventSetter.Event")); 101throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "EventSetter.Handler")); 105throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventTrigger.cs (1)
61throw new ArgumentException(SR.Format(SR.EventTriggerBadAction, value.GetType().Name));
System\Windows\FigureLength.cs (3)
105throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "value")); 109throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoInfinity, "value")); 121throw new ArgumentException(SR.Format(SR.InvalidCtorParameterUnknownFigureUnitType, "type"));
System\Windows\FrameworkElement.cs (1)
496throw new ArgumentException( SR.Format(SR.TargetNameNotFound, targetName));
System\Windows\FrameworkElementFactory.cs (7)
99throw new ArgumentException(SR.Format(SR.MustBeFrameworkOr3DDerived, value.Name)); 156throw new ArgumentException(SR.NameNotEmptyString); 179throw new ArgumentException(SR.FrameworkElementFactoryAlreadyParented); 221throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, dp.Name)); 235throw new ArgumentException(SR.Format(SR.ReadOnlyPropertyNotAllowed, dp.Name, GetType().Name)); 323throw new ArgumentException(SR.HandlerTypeIllegal); 359throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\FrameworkTemplate.cs (2)
386throw new ArgumentException(SR.Format(SR.VisualTreeRootIsFrameworkElement, 849throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, dependencyProperty.Name));
System\Windows\GridLength.cs (3)
94throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "value")); 98throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoInfinity, "value")); 104throw new ArgumentException(SR.Format(SR.InvalidCtorParameterUnknownGridUnitType, "type"));
System\Windows\Interop\DynamicScriptObject.cs (1)
364throw new ArgumentException(SR.NeedToBeComVisible);
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
1437throw new ArgumentException(SR.Format(SR.IntegerCollectionLengthLessThanZero, Array.Empty<object>())); 2083throw new ArgumentException(SR.Format(SR.MissingTagInNamespace, "=", uriInput)); 2088throw new ArgumentException(SR.Format(SR.AssemblyTagMissing, "assembly", uriInput));
System\Windows\Markup\Baml2006\SharedStream.cs (1)
49throw new ArgumentException("can\u2019t seek on baseStream");
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (3)
89throw new ArgumentException(SR.AssemblyIdNegative); 128throw new ArgumentException(SR.KnownTypeIdNegative); 157throw new ArgumentException(SR.KnownTypeIdNegative);
System\Windows\Markup\BamlWriter.cs (2)
46throw new ArgumentException(SR.BamlWriterBadStream); 1081throw new ArgumentException(SR.Format(SR.BamlWriterBadAssembly,
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
301throw new ArgumentException(
System\Windows\Markup\RoutedEventConverter.cs (1)
169throw new ArgumentException(SR.Format(SR.ParserPrefixNSProperty, nsPrefix, nameString));
System\Windows\Markup\XamlInt32CollectionSerializer.cs (2)
285throw new ArgumentException(SR.IntegerCollectionLengthLessThanZero); 334throw new ArgumentException(SR.UnknownIndexType);
System\Windows\Markup\XamlSerializerUtil.cs (1)
54throw new ArgumentException(SR.Format(SR.NonWhiteSpaceInAddText, s));
System\Windows\Markup\XamlStream.cs (2)
165throw new ArgumentException(SR.ParserWriterUnknownOrigin); 309throw new ArgumentException(SR.ParserWriterUnknownOrigin);
System\Windows\Markup\XmlnsCache.cs (2)
362throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsDefinitionAttribute")); 397throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsCompatibleWithAttribute"));
System\Windows\Markup\XmlnsDictionary.cs (3)
146throw new ArgumentException(SR.ParserKeysAreStrings); 475throw new ArgumentException(SR.ParserKeysAreStrings); 483throw new ArgumentException(SR.ParserKeysAreStrings);
System\Windows\Media\Animation\BeginStoryboard.cs (2)
84throw new ArgumentException(SR.Storyboard_UnrecognizedHandoffBehavior); 109throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, "Name"));
System\Windows\Media\Animation\SeekStoryboard.cs (1)
83throw new ArgumentException(SR.Storyboard_UnrecognizedTimeSeekOrigin);
System\Windows\Media\Animation\Storyboard.cs (1)
1217throw new ArgumentException(SR.Storyboard_UnrecognizedHandoffBehavior);
System\Windows\MessageBox.cs (1)
382throw new ArgumentException(SR.CantShowMBServiceWithOwner);
System\Windows\Navigation\NavigationService.cs (1)
207throw new System.ArgumentException(SR.HyperLinkTargetNotFound);
System\Windows\PropertyPath.cs (1)
860throw new ArgumentException(SR.Format(SR.ParserPrefixNSProperty, nsPrefix, name));
System\Windows\PropertyPathConverter.cs (2)
112throw new ArgumentException(SR.Format(SR.CannotConvertType, source.GetType().FullName, typeof(PropertyPath))); 143throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(PropertyPath), destinationType.FullName));
System\Windows\ResourceDictionary.cs (2)
147throw new ArgumentException(SR.Format(SR.ResourceDictionaryLoadFromFailure, value == null ? "''" : value.ToString())); 1244throw new ArgumentException(SR.KeyCollectionHasInvalidKey);
System\Windows\ResourceReferenceExpressionConverter.cs (1)
122throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "ResourceReferenceExpression"));
System\Windows\Setter.cs (8)
61throw new ArgumentException(SR.SetterValueCannotBeUnset); 80throw new ArgumentException(SR.Format(SR.ReadOnlyPropertyNotAllowed, property.Name, GetType().Name)); 102throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "Setter.Property")); 110throw new ArgumentException(SR.StylePropertyInStyleNotAllowed); 124throw new ArgumentException(SR.Format(SR.SetterValueOfMarkupExtensionNotSupported, 131throw new ArgumentException(SR.Format(SR.InvalidSetterValue, value, dp.OwnerType, dp.Name)); 184throw new ArgumentException(SR.SetterValueCannotBeUnset); 192throw new ArgumentException(SR.StyleValueOfExpressionNotSupported);
System\Windows\Shell\JumpList.cs (1)
72throw new ArgumentException(SR.JumpItemsRejectedEventArgs_CountMismatch);
System\Windows\Style.cs (2)
188throw new ArgumentException(SR.Format(SR.MustBeFrameworkDerived, value.Name)); 226throw new ArgumentException(SR.StyleCannotBeBasedOnSelf);
System\Windows\StyleHelper.cs (1)
5329throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, childName));
System\Windows\SystemKeyConverter.cs (1)
135throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "SystemResourceKey or SystemThemeKey"));
System\Windows\TemplateBindingExpressionConverter.cs (1)
49throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "TemplateBindingExpression"));
System\Windows\ThicknessConverter.cs (1)
150throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(Thickness), destinationType.FullName));
System\Windows\Trigger.cs (2)
86throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 92throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported);
System\Windows\TriggerActionCollection.cs (1)
308throw new ArgumentException(SR.MustBeTriggerAction);
System\Windows\TriggerBase.cs (2)
183throw new ArgumentException(SR.StylePropertyInStyleNotAllowed); 197throw new ArgumentException(SR.ChildNameMustBeNonEmpty);
System\Windows\Window.cs (5)
1184throw new ArgumentException(SR.CannotSetOwnerToItself); 1218throw new ArgumentException(SR.Format(SR.CircularOwnerChild, value, this)); 5604throw new ArgumentException(SR.Format(SR.ValueNotBetweenInt32MinMax, l)); 5615throw new ArgumentException(SR.Format(SR.InvalidValueForTopLeft, length)); 5621throw new ArgumentException(SR.Format(SR.ValueNotBetweenInt32MinMax, length));
PresentationUI (1)
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
47throw new ArgumentException(SR.DigitalSignatureNoFixedDocumentSequence);
ReachFramework (14)
Packaging\XpsFixedPageReaderWriter.cs (2)
1232throw new ArgumentException(SR.ReachPackaging_InvalidType); 1252throw new ArgumentException(SR.Format(SR.ReachPackaging_InvalidContentType, mimeType.ToString()));
Packaging\XpsManager.cs (2)
364throw new ArgumentException(SR.ReachPackaging_InvalidType); 1489throw new ArgumentException(SR.ReachPackaging_PartFromDifferentContainer);
Serialization\FontTypeConverter.cs (1)
162throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "GlyphRun"));
Serialization\ImageSourceTypeConverter.cs (1)
171throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "BitmapSource"));
Serialization\Manager\NGCSerializer.cs (3)
100throw new ArgumentException(SR.ReachSerialization_ExpectedFixedDocument); 169throw new ArgumentException(SR.ReachSerialization_ExpectedFixedPage); 486throw new ArgumentException(SR.ReachSerialization_ExpectedFixedDocumentSequence);
Serialization\Manager\ReachVisualSerializer.cs (2)
57throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 193throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual)));
Serialization\Manager\ReachVisualSerializerAsync.cs (2)
89throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 242throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual)));
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
545throw new ArgumentException(SR.Format(SR.ReachPackaging_InvalidContentType, contentType.ToString()));
ResultsOfTGenerator (1)
Program.cs (1)
24throw new ArgumentException("Invalid number of args specified. Must specify both class file path and test file path if args are passed.");
System.Collections (22)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Collections\BitArray.cs (6)
330throw new ArgumentException(SR.Arg_ArrayLengthsDiffer); 403throw new ArgumentException(SR.Arg_ArrayLengthsDiffer); 476throw new ArgumentException(SR.Arg_ArrayLengthsDiffer); 761throw new ArgumentException(SR.Argument_InvalidOffLen); 779throw new ArgumentException(SR.Argument_InvalidOffLen); 826throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Collections\Generic\LinkedList.cs (2)
207throw new ArgumentException(SR.Arg_InsufficientSpace); 465throw new ArgumentException(SR.Arg_InsufficientSpace);
System\Collections\Generic\PriorityQueue.cs (1)
956throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Collections\Generic\SortedDictionary.cs (5)
550throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 574throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 711throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 735throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 904throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, item));
System\Collections\Generic\SortedList.cs (3)
167throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, keys[i])); 442throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 473throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Collections\Generic\SortedSet.cs (2)
523throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 558throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Collections\Generic\Stack.cs (2)
108throw new ArgumentException(SR.Argument_InvalidOffLen); 141throw new ArgumentException(SR.Argument_InvalidOffLen);
System.Collections.Concurrent (10)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Collections\Concurrent\BlockingCollection.cs (1)
184throw new ArgumentException(SR.BlockingCollection_ctor_CountMoreThanCapacity);
System\Collections\Concurrent\ConcurrentDictionary.cs (6)
295throw new ArgumentException(SR.ConcurrentDictionary_SourceContainsDuplicateKeys); 720throw new ArgumentException(SR.ConcurrentDictionary_ArrayNotLargeEnough); 1527throw new ArgumentException(SR.ConcurrentDictionary_KeyAlreadyExisted); 1663throw new ArgumentException(SR.ConcurrentDictionary_TypeOfKeyIncorrect); 1796throw new ArgumentException(SR.ConcurrentDictionary_TypeOfKeyIncorrect); 1856throw new ArgumentException(SR.ConcurrentDictionary_ArrayNotLargeEnough);
System\Collections\Concurrent\ConcurrentStack.cs (1)
402throw new ArgumentException(SR.ConcurrentStack_PushPopRange_InvalidCount);
System\ThrowHelper.cs (1)
20internal static void ThrowValueNullException() => throw new ArgumentException(SR.ConcurrentDictionary_TypeOfValueIncorrect);
System.Collections.Immutable (8)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (4)
162throw new ArgumentException(SR.Format(SR.DuplicateKey, key)); 168throw new ArgumentException(SR.Format(SR.DuplicateKey, key)); 194throw new ArgumentException(SR.Format(SR.DuplicateKey, key)); 200throw new ArgumentException(SR.Format(SR.DuplicateKey, key));
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
873throw new ArgumentException(SR.Format(SR.DuplicateKey, item.Key));
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (1)
705throw new ArgumentException(SR.Format(SR.DuplicateKey, key));
System\Collections\Immutable\SortedInt32KeyNode.cs (1)
466throw new ArgumentException(SR.Format(SR.DuplicateKey, key));
System.Collections.NonGeneric (5)
System\Collections\CollectionBase.cs (1)
170if (index < 0) throw new ArgumentException(SR.Arg_RemoveArgNotFound);
System\Collections\Queue.cs (1)
138throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Collections\SortedList.cs (2)
179throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate_OldAndNewKeys, GetKey(i), key)); 342throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Collections\Stack.cs (1)
122throw new ArgumentException(SR.Argument_InvalidOffLen);
System.Collections.Specialized (6)
src\libraries\System.Private.CoreLib\src\System\Collections\CompatibleComparer.cs (1)
44throw new ArgumentException(SR.Argument_ImplementIComparable);
System\Collections\Specialized\ListDictionary.cs (2)
163throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, key)); 211throw new ArgumentException(SR.Arg_InsufficientSpace);
System\Collections\Specialized\NameObjectCollectionBase.cs (2)
384throw new ArgumentException(SR.Arg_InsufficientSpace); 608throw new ArgumentException(SR.Arg_InsufficientSpace);
System\Collections\Specialized\NameValueCollection.cs (1)
209throw new ArgumentException(SR.Arg_InsufficientSpace);
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
43throw new ArgumentException(SR.Format(SR.Common_PropertyNotFound, validationContext.ObjectType.FullName, OtherProperty));
System.ComponentModel.Composition (8)
System\ComponentModel\Composition\ConstraintServices.cs (7)
121throw new ArgumentException(nameof(parameter)); 126throw new ArgumentException(nameof(constantKey)); 140throw new ArgumentException(nameof(parameter)); 145throw new ArgumentException(nameof(constantKey)); 150throw new ArgumentException(nameof(constantType)); 168throw new ArgumentException(nameof(parameter)); 173throw new ArgumentException(nameof(constantValue));
System\ComponentModel\Composition\ExceptionBuilder.cs (1)
55throw new ArgumentException(SR.ArgumentException_EmptyString);
System.ComponentModel.Primitives (2)
System\ComponentModel\InvalidAsynchronousStateException.cs (1)
30public InvalidAsynchronousStateException(string? message) : base(message)
System\ComponentModel\InvalidEnumArgumentException.cs (1)
29public InvalidEnumArgumentException(string? message) : base(message)
System.ComponentModel.TypeConverter (59)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
67_ => throw new ArgumentException(SR.Format(SR.InvalidColor, text)),
System\ComponentModel\AmbientValueAttribute.cs (1)
147throw new ArgumentException(SR.RuntimeInstanceNotAllowed);
System\ComponentModel\Container.cs (1)
235throw new ArgumentException(SR.Format(SR.DuplicateComponentName, name));
System\ComponentModel\Design\PropertyTabAttribute.cs (4)
198throw new ArgumentException(SR.PropertyTabAttributeArrayLengthMismatch); 206throw new ArgumentException(SR.PropertyTabAttributeArrayLengthMismatch); 213throw new ArgumentException(SR.PropertyTabAttributeParamsBothNull); 222throw new ArgumentException(SR.PropertyTabAttributeBadPropertyTabScope);
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (8)
46throw new ArgumentException(SR.InstanceDescriptorMustBeStatic); 50throw new ArgumentException(SR.InstanceDescriptorLengthMismatch); 57throw new ArgumentException(SR.InstanceDescriptorCannotBeStatic); 61throw new ArgumentException(SR.InstanceDescriptorLengthMismatch); 68throw new ArgumentException(SR.InstanceDescriptorMustBeStatic); 72throw new ArgumentException(SR.InstanceDescriptorLengthMismatch); 79throw new ArgumentException(SR.InstanceDescriptorMustBeReadable); 84throw new ArgumentException(SR.InstanceDescriptorMustBeStatic);
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (1)
125throw new ArgumentException(SR.Format(SR.MemberRelationshipService_RelationshipNotSupported, sourceName, source.Member.Name, relName, relationship.Member.Name));
System\ComponentModel\Design\ServiceContainer.cs (1)
85throw new ArgumentException(SR.Format(SR.ErrorInvalidServiceInstance, serviceType.FullName));
System\ComponentModel\EnumConverter.cs (2)
28throw new ArgumentException(SR.EnumInvalidValue); 133throw new ArgumentException(SR.Format(SR.EnumConverterInvalidValue, value, EnumType.Name));
System\ComponentModel\LicenseManager.cs (1)
249throw new ArgumentException(SR.LicMgrDifferentUser);
System\ComponentModel\MaskedTextProvider.cs (3)
227throw new ArgumentException(SR.MaskedTextProviderMaskInvalidChar); 674throw new ArgumentException(SR.MaskedTextProviderInvalidCharError); 705throw new ArgumentException(SR.MaskedTextProviderInvalidCharError);
System\ComponentModel\PropertyDescriptorCollection.cs (4)
420throw new ArgumentException(nameof(value)); 460throw new ArgumentException(nameof(value)); 487throw new ArgumentException(nameof(key)); 581throw new ArgumentException(nameof(value));
System\ComponentModel\ReflectEventDescriptor.cs (5)
83throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 87throw new ArgumentException(SR.Format(SR.ErrorInvalidEventType, name)); 101_componentClass = componentClass ?? throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 195throw new ArgumentException(SR.Format(SR.ErrorInvalidEventHandler, Name)); 369throw new ArgumentException(SR.Format(SR.ErrorMissingEventAccessors, Name));
System\ComponentModel\ReflectPropertyDescriptor.cs (4)
95throw new ArgumentException(SR.Format(SR.ErrorInvalidPropertyType, name)); 100throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 171throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 351throw new ArgumentException(SR.Format(SR.ErrorMissingPropertyAccessors, Name));
System\ComponentModel\TypeDescriptor.cs (12)
407throw new ArgumentException(SR.TypeDescriptorSameAssociation); 432throw new ArgumentException(SR.TypeDescriptorAlreadyAssociated); 486throw new ArgumentException(SR.TypeDescriptorArgsCountMismatch); 998throw new ArgumentException(nameof(component)); 1031throw new ArgumentException(nameof(component)); 1041throw new ArgumentException(nameof(component)); 2090throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(Attribute).FullName)); 2103throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(PropertyDescriptor).FullName)); 2116throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(EventDescriptor).FullName)); 3253throw new ArgumentException(SR.TypeDescriptorArgsCountMismatch); 3356throw new ArgumentException(nameof(instance)); 3372throw new ArgumentException(nameof(instance));
System\Drawing\PointConverter.cs (2)
54throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text, "x, y")); 104throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Drawing\RectangleConverter.cs (2)
50throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text, "x, y, width, height")); 110throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Drawing\SizeConverter.cs (2)
50throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text, "Width,Height")); 102throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Drawing\SizeFConverter.cs (2)
49throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text, "Width,Height")); 99throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Timers\Timer.cs (3)
53throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(interval), interval)); 59throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(interval), interval)); 171throw new ArgumentException(SR.Format(SR.TimerInvalidInterval, value, 0));
System.Composition.Convention (1)
System\Composition\Convention\PartConventionBuilder.cs (1)
405throw new ArgumentException(SR.ArgumentException_EmptyString);
System.Console (3)
System\ConsolePal.Unix.cs (1)
766throw new ArgumentException(SR.Arg_InvalidConsoleColor);
System\IO\SyncTextReader.cs (2)
125throw new ArgumentException(SR.Argument_InvalidOffLen); 137throw new ArgumentException(SR.Argument_InvalidOffLen);
System.Data.Common (10)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (4)
46ArgumentException e = new ArgumentException(error); 205ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartName, property, value)); 212ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameQuoteUsage, property, value)); 219ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameToManyParts, property, value, limit));
System\Data\DataException.cs (1)
338internal static Exception _Argument(string error) => TraceExceptionAsReturnValue(new ArgumentException(error));
System\Data\DataSetUtil.cs (1)
20return new ArgumentException(message);
System\Data\SQLTypes\SQLGuid.cs (1)
34throw new ArgumentException(SQLResource.InvalidArraySizeMessage);
System\Xml\XmlDataDocument.cs (3)
105throw new ArgumentException(SR.DataDom_MultipleDataSet); 2665throw new ArgumentException(SR.DataDom_DataSetNull); 2668throw new ArgumentException(SR.DataDom_MultipleDataSet);
System.Diagnostics.DiagnosticSource (5)
System\Diagnostics\Activity.cs (3)
445NotifyError(new ArgumentException(SR.OperationNameInvalid)); 610NotifyError(new ArgumentException(SR.ParentIdInvalid)); 954throw new ArgumentException(SR.ActivityIdFormatInvalid);
System\Diagnostics\ActivityContext.cs (1)
106throw new ArgumentException(SR.InvalidTraceParent);
System\Diagnostics\Metrics\TagList.cs (1)
229throw new ArgumentException(SR.Arg_BufferTooSmall);
System.Diagnostics.Process (1)
System\Diagnostics\Process.cs (1)
1039throw new ArgumentException(SR.Format(SR.MissingProcess, processId.ToString()));
System.Diagnostics.TraceSource (2)
System\Diagnostics\TraceSwitch.cs (1)
40throw new ArgumentException(SR.TraceSwitchInvalidLevel);
System\Diagnostics\TraceUtils.cs (1)
34throw new ArgumentException(SR.Format(SR.AttributeNotSupported, key, parent.GetType().FullName));
System.Drawing.Primitives (2)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
67_ => throw new ArgumentException(SR.Format(SR.InvalidColor, text)),
System\Drawing\Color.cs (1)
435throw new ArgumentException(SR.Format(SR.InvalidEx2BoundArgument, n, v, byte.MinValue, byte.MaxValue));
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.cs (1)
171throw new ArgumentException(SR.Cbor_Writer_PayloadIsNotValidCbor);
System.Formats.Tar (4)
System\Formats\Tar\TarHeader.cs (2)
126throw new ArgumentException(SR.Format(SR.TarExtAttrDisallowedKeyChar, kvp.Key, kvp.Key[index] == '\n' ? "\\n" : kvp.Key[index])); 130throw new ArgumentException(SR.Format(SR.TarExtAttrDisallowedValueChar, kvp.Key, "\\n"));
System\Formats\Tar\TarHeader.Write.cs (1)
630throw new ArgumentException(SR.Format(SR.TarSizeFieldTooLargeForEntryFormat, _format));
System\Formats\Tar\TarWriter.cs (1)
65throw new ArgumentException(SR.IO_NotSupported_UnwritableStream);
System.IO.Compression (4)
System\IO\Compression\ZipArchive.cs (3)
136throw new ArgumentException(SR.CreateModeCapabilities); 140throw new ArgumentException(SR.ReadModeCapabilities); 151throw new ArgumentException(SR.UpdateModeCapabilities);
System\IO\Compression\ZipArchiveEntry.cs (1)
144throw new ArgumentException(SR.EntryNamesTooLong);
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
116throw new ArgumentException(SR.Format(SR.InvalidEnumArgument, nameof(value), (int)value, nameof(NotifyFilters)));
System.IO.IsolatedStorage (4)
System\IO\IsolatedStorage\IsolatedStorage.cs (1)
182throw new ArgumentException(SR.IsolatedStorage_Scope_Invalid);
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
675throw new ArgumentException(SR.IsolatedStorage_Scope_U_R_M);
System\IO\IsolatedStorage\IsolatedStorageFileStream.cs (2)
89throw new ArgumentException( 113throw new ArgumentException(SR.IsolatedStorage_FileOpenMode);
System.IO.MemoryMappedFiles (6)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (5)
145throw new ArgumentException(SR.Argument_EmptyFile); 218throw new ArgumentException(SR.Argument_EmptyFile); 247throw new ArgumentException(SR.Argument_EmptyFile); 290throw new ArgumentException(SR.Argument_MapNameEmptyString); 519throw new ArgumentException(SR.Argument_MapNameEmptyString);
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
22throw new ArgumentException(SR.Argument_ReadAccessWithLargeCapacity);
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeClientStream.cs (1)
64throw new ArgumentException(SR.Argument_EmptyServerName);
System.Linq.Expressions (35)
System\Linq\Expressions\Error.cs (34)
19return new ArgumentException(Strings.ReducibleMustOverrideReduce); 26return new ArgumentException(Strings.ArgCntMustBeGreaterThanNameCnt); 75return new ArgumentException(Strings.MustReduceToDifferent); 117return new ArgumentException(Strings.ReducedNotCompatible); 152return new ArgumentException(Strings.FirstArgumentMustBeCallSite); 180return new ArgumentException(Strings.TypeMustBeDerivedFromSystemDelegate); 261return new ArgumentException(Strings.OnlyStaticMethodsHaveNullInstance); 296return new ArgumentException(Strings.MustBeReducible); 373return new ArgumentException(Strings.StartEndMustBeOrdered); 387return new ArgumentException(Strings.TryMustHaveCatchFinallyOrFault); 394return new ArgumentException(Strings.BodyOfCatchMustHaveSameTypeAsBodyOfTry); 471return new ArgumentException(Strings.ArgumentTypeCannotBeVoid); 570return new ArgumentException(Strings.ArgumentTypesMustMatch); 649return new ArgumentException(Strings.ExpressionTypeDoesNotMatchReturn(p0, p1)); 656return new ArgumentException(Strings.ExpressionTypeDoesNotMatchAssignment(p0, p1)); 663return new ArgumentException(Strings.ExpressionTypeDoesNotMatchLabel(p0, p1)); 677return new ArgumentException(Strings.FieldNotDefinedForType(p0, p1)); 684return new ArgumentException(Strings.InstanceFieldNotDefinedForType(p0, p1)); 691return new ArgumentException(Strings.FieldInfoNotDefinedForType(p0, p1, p2)); 698return new ArgumentException(Strings.IncorrectNumberOfIndexes); 705return new ArgumentException(Strings.IncorrectNumberOfLambdaDeclarationParameters); 713return new ArgumentException(Strings.IncorrectNumberOfMembersForGivenConstructor); 720return new ArgumentException(Strings.IncorrectNumberOfArgumentsForMembers); 820return new ArgumentException(Strings.ParameterExpressionNotValidAsDelegate(p0, p1)); 841return new ArgumentException(Strings.InstancePropertyWithoutParameterNotDefinedForType(p0, p1)); 855return new ArgumentException(Strings.InstanceAndMethodTypeMismatch(p0, p1, p2)); 914return new ArgumentException(Strings.UnhandledBinding); 921return new ArgumentException(Strings.UnhandledBindingType(p0)); 943return new ArgumentException(Strings.UserDefinedOpMustHaveConsistentTypes(p0, p1)); 950return new ArgumentException(Strings.UserDefinedOpMustHaveValidReturnType(p0, p1)); 957return new ArgumentException(Strings.LogicalOperatorMustHaveBooleanOperators(p0, p1)); 1172return new ArgumentException(Strings.TestValueTypeDoesNotMatchComparisonMethodParameter(p0, p1)); 1179return new ArgumentException(Strings.SwitchValueTypeDoesNotMatchComparisonMethodParameter(p0, p1)); 1277return new ArgumentException(Strings.IncorrectNumberOfConstructorArguments);
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
356throw new ArgumentException(nameof(array));
System.Linq.Parallel (2)
System\Linq\ParallelEnumerable.cs (2)
355throw new ArgumentException(SR.ParallelEnumerable_WithQueryExecutionMode_InvalidMode); 391throw new ArgumentException(SR.ParallelEnumerable_WithMergeOptions_InvalidOptions);
System.Linq.Queryable (2)
System\Linq\Error.cs (2)
9new ArgumentException(Strings.ArgumentNotIEnumerableGeneric(message)); 12new ArgumentException(Strings.ArgumentNotValid(message));
System.Memory (1)
src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (1)
202throw new ArgumentException(nameof(sizeHint));
System.Net.Http (4)
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (1)
420throw new ArgumentException(SR.Format(CultureInfo.InvariantCulture,
System\Net\Http\Headers\HttpHeaderValueCollection.cs (2)
105throw new ArgumentException(SR.net_http_copyto_array_too_small); 119throw new ArgumentException(SR.net_http_copyto_array_too_small);
System\Net\Http\Headers\RangeItemHeaderValue.cs (1)
25throw new ArgumentException(SR.net_http_headers_invalid_range);
System.Net.Http.Json (1)
System\Net\Http\Json\JsonContent.cs (1)
161throw new ArgumentException(SR.Format(SR.SerializeWrongType, inputType, inputValue.GetType()));
System.Net.HttpListener (1)
System\Net\Managed\ListenerPrefix.cs (1)
110throw new ArgumentException(SR.net_listener_host);
System.Net.Mail (2)
System\Net\Mail\MailPriority.cs (2)
158throw new ArgumentException(SR.MailSubjectInvalidFormat); 313throw new ArgumentException(SR.net_io_invalidasyncresult);
System.Net.Security (1)
System\Net\Security\Pal.Managed\EndpointChannelBindingToken.cs (1)
56throw new ArgumentException(signatureAlgorithm.Value);
System.Net.Sockets (3)
System\Net\Sockets\SocketAsyncEventArgs.cs (3)
156throw new ArgumentException(SR.net_ambiguousbuffers); 363throw new ArgumentException(SR.net_ambiguousbuffers); 390throw new ArgumentException(SR.net_ambiguousbuffers);
System.Numerics.Tensors (21)
System\ThrowHelper.cs (21)
21throw new ArgumentException(SR.Argument_SpansMustHaveSameLength); 25throw new ArgumentException(SR.Argument_SpansMustBeNonEmpty); 46throw new ArgumentException(SR.Format(SR.Argument_InvalidTypeWithPointersNotSupported, targetType)); 69throw new ArgumentException(SR.ThrowArgument_IndicesLengthMustEqualRank); 73return new ArgumentException(message); 85throw new ArgumentException(SR.ThrowArgument_FilterTensorMustEqualTensorLength); 103throw new ArgumentException(SR.ThrowArgument_ShapesNotBroadcastCompatible); 109throw new ArgumentException(SR.ThrowArgument_SplitNotSplitEvenly); 133throw new ArgumentException(SR.ThrowArgument_StackTooFewTensors); 139throw new ArgumentException(SR.ThrowArgument_OnlyOneWildcard); 145throw new ArgumentException(SR.ThrowArgument_InvalidReshapeDimensions); 151throw new ArgumentException(SR.ThrowArgument_AxisLargerThanRank); 157throw new ArgumentException(SR.ThrowArgument_InvalidSqueezeAxis); 163throw new ArgumentException(SR.ThrowArgument_ConcatenateTooFewTensors); 169throw new ArgumentException(SR.ThrowArgument_InvalidAxis); 175throw new ArgumentException(SR.ThrowArgument_InvalidConcatenateShape); 181throw new ArgumentException(SR.ThrowArgument_TransposeTooFewDimensions); 187throw new ArgumentException(SR.ThrowArgument_PermuteAxisOrder); 193throw new ArgumentException(SR.ThrowArgument_InPlaceInvalidShape); 199throw new ArgumentException(SR.ThrowArgument_InvalidStridesAndLengths); 205throw new ArgumentException(SR.ThrowArgument_StrideLessThan0);
System.ObjectModel (1)
System\Collections\CollectionHelpers.cs (1)
29throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System.Private.CoreLib (388)
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
64throw new ArgumentException(SR.Format_StringZeroLength);
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
133throw new ArgumentException(SR.AggregateException_ctor_InnerExceptionNull);
src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (1)
205throw new ArgumentException(SR.Arg_MustBeTrue);
src\libraries\System.Private.CoreLib\src\System\ArgumentNullException.cs (1)
21: base(SR.ArgumentNull_Generic)
src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
25: base(SR.Arg_ArgumentOutOfRangeException)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
156throw new ArgumentException(SR.Arg_MustBeBoolean);
src\libraries\System.Private.CoreLib\src\System\Buffer.cs (1)
50throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
63throw new ArgumentException(SR.Arg_MustBeByte);
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
145throw new ArgumentException(SR.Arg_MustBeChar);
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (26)
195throw new ArgumentException(SR.Argument_InvalidOffLen); 265throw new ArgumentException(SR.Argument_InvalidOffLen); 330throw new ArgumentException(SR.Argument_InvalidOffLen); 534throw new ArgumentException(SR.Argument_InvalidOffLen); 580throw new ArgumentException(SR.Argument_InvalidOffLen); 608throw new ArgumentException(SR.Argument_InvalidOffLen); 639throw new ArgumentException(SR.Argument_InvalidOffLen); 765throw new ArgumentException(SR.Argument_InvalidOffLen); 826throw new ArgumentException(SR.Argument_InvalidOffLen); 831throw new ArgumentException(SR.Argument_InvalidOffLen); 848throw new ArgumentException(SR.Argument_InvalidOffLen); 972throw new ArgumentException(SR.Argument_InvalidOffLen); 990throw new ArgumentException(SR.Argument_InvalidOffLen); 1028throw new ArgumentException(SR.Argument_InvalidOffLen); 1037throw new ArgumentException(SR.Argument_InvalidOffLen); 1813throw new ArgumentException(SR.Argument_InvalidOffLen); 2067throw new ArgumentException(SR.Argument_InvalidOffLen); 2219throw new ArgumentException(SR.Argument_InvalidOffLen); 2285throw new ArgumentException(SR.Argument_InvalidOffLen); 2300throw new ArgumentException(SR.Argument_InvalidOffLen); 2302throw new ArgumentException(SR.Argument_InvalidOffLen); 2333throw new ArgumentException(SR.Argument_InvalidOffLen); 2344throw new ArgumentException(SR.Argument_InvalidOffLen); 2457throw new ArgumentException(SR.Argument_InvalidOffLen); 2475throw new ArgumentException(SR.Argument_InvalidOffLen); 2498throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\Collections\Comparer.cs (1)
67throw new ArgumentException(SR.Argument_ImplementIComparable);
src\libraries\System.Private.CoreLib\src\System\Collections\CompatibleComparer.cs (1)
44throw new ArgumentException(SR.Argument_ImplementIComparable);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (2)
106throw new ArgumentException(SR.Argument_InvalidOffLen); 143throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (8)
170throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 185throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 205throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 220throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 580throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 891throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate__, _buckets[bucketNumber].key, key)); 1197throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1232throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (3)
107throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate__, node.key, key)); 153throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 308throw new ArgumentException(SR.Arg_RankMultiDimNotSupported);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
29throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (1)
250throw new ArgumentException(SR.RuntimeInstanceNotAllowed);
src\libraries\System.Private.CoreLib\src\System\Convert.cs (2)
164_ => throw new ArgumentException(SR.Arg_UnknownTypeCode), 2296private static void ThrowInvalidBase() => throw new ArgumentException(SR.Arg_InvalidBase);
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
251throw new ArgumentException(SR.Arg_MustBeDateOnly);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (3)
1088throw new ArgumentException(SR.Arg_MustBeDateTime); 1183throw new ArgumentException(SR.Arg_OleAutDateInvalid); 1197if (millis < 0 || millis > MaxMillis) throw new ArgumentException(SR.Arg_OleAutDateScale);
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (2)
576throw new ArgumentException(SR.Arg_MustBeDateTimeOffset); 842throw new ArgumentException(SR.Arg_ArgumentOutOfRangeException);
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (3)
304throw new ArgumentException(SR.Arg_DecBitCtor); 337throw new ArgumentException(SR.Arg_DecBitCtor); 424throw new ArgumentException(SR.Arg_MustBeDecimal);
src\libraries\System.Private.CoreLib\src\System\Delegate.cs (1)
161throw new ArgumentException(SR.Arg_DlgtTypeMis);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (2)
519throw new ArgumentException(SR.Argument_ToExclusiveLessThanFromExclusive); 566throw new ArgumentException(SR.Argument_ToExclusiveLessThanFromExclusive);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (7)
1583throw new ArgumentException(SR.EventSource_NeedGuid); 1588throw new ArgumentException(SR.EventSource_NeedName); 1921throw new ArgumentException(SR.EventSource_NoRelatedActivityId); 2605throw new ArgumentException(SR.EventSource_ListenerNotFound); 2817throw new ArgumentException(SR.Format(SR.EventSource_EventSourceGuidInUse, m_guid)); 3272throw new ArgumentException(SR.EventSource_StopsFollowStarts); 5477throw new ArgumentException(msg);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (1)
585throw new ArgumentException(SR.Format(SR.EventSource_NonCompliantTypeError, dataType.Name));
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
267return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeDouble);
src\libraries\System.Private.CoreLib\src\System\DuplicateWaitObjectException.cs (1)
20: base(SR.Arg_DuplicateWaitObjectException)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (5)
406throw new ArgumentException(SR.Format(SR.Argument_EnumTypeDoesNotMatch, flag.GetType(), GetType())); 1123throw new ArgumentException(SR.Format(SR.Arg_EnumValueNotFound, originalValue.ToString())); 1291throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, target.GetType(), GetType())); 1638throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, rtType)); 1651throw new ArgumentException(SR.Format(SR.Arg_EnumFormatUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType));
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (2)
57throw new ArgumentException(SR.Argument_LongEnvVarValue); 64throw new ArgumentException(Marshal.GetPInvokeErrorMessage(errorCode));
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (1)
139throw new ArgumentException(SR.Format(SR.Argument_ResultCalendarRange, minValue, maxValue));
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (3)
747throw new ArgumentException(SR.Arg_ExternalException); 800throw new ArgumentException(SR.Arg_ExternalException); 939throw new ArgumentException(SR.Arg_ExternalException);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (8)
147throw new ArgumentException(SR.Arg_ExternalException); 168throw new ArgumentException(SR.Arg_ExternalException); 202throw new ArgumentException(SR.Arg_ExternalException); 250throw new ArgumentException(SR.Arg_ExternalException); 402throw new ArgumentException(SR.Arg_ExternalException); 415throw new ArgumentException(SR.Arg_ExternalException); 515throw new ArgumentException(SR.Arg_ExternalException); 560throw new ArgumentException(SR.Arg_ExternalException);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
732throw new ArgumentException(SR.Format(SR.Argument_InvalidId, nameof(name)));
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
341throw new ArgumentException(SR.Format(SR.Argument_InvalidResourceCultureName, cultureName));
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (2)
18: base(DefaultMessage) 23: base(message ?? DefaultMessage)
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (2)
408throw new ArgumentException(SR.Argument_NoEra); 429throw new ArgumentException(SR.Argument_NoEra);
src\libraries\System.Private.CoreLib\src\System\Globalization\RegionInfo.cs (1)
54throw new ArgumentException(SR.Argument_NoRegionInvariantCulture);
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
434return (obj is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeHalf);
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
61throw new ArgumentException(SR.Arg_MustBeInt128);
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
68throw new ArgumentException(SR.Arg_MustBeInt16);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
75throw new ArgumentException(SR.Arg_MustBeInt32);
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
72throw new ArgumentException(SR.Arg_MustBeInt64);
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
193throw new ArgumentException(SR.Arg_MustBeIntPtr);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (3)
46throw new ArgumentException(SR.Argument_StreamNotReadable); 302throw new ArgumentException(SR.Argument_InvalidOffLen); 421throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (2)
51throw new ArgumentException(SR.Argument_StreamNotWritable); 181throw new ArgumentException(SR.Arg_SurrogatesNotAllowedAsSingleChar);
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (2)
88throw new ArgumentException(SR.Argument_InvalidOffLen); 520_ => throw new ArgumentException(SR.Argument_InvalidSeekOrigin)
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
45throw new ArgumentException(SR.Argument_NullCharInPath);
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (5)
148throw new ArgumentException(SR.Argument_StreamNotReadable); 356throw new ArgumentException(SR.Argument_InvalidOffLen); 435throw new ArgumentException(SR.Argument_InvalidOffLen); 1057throw new ArgumentException(SR.Argument_InvalidOffLen); 1268throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (4)
104throw new ArgumentException(SR.Argument_StreamNotWritable); 379throw new ArgumentException(SR.Argument_InvalidOffLen); 739throw new ArgumentException(SR.Argument_InvalidOffLen); 891throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (3)
94throw new ArgumentException(SR.Argument_InvalidOffLen); 295throw new ArgumentException(SR.Argument_InvalidOffLen); 313throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\StringWriter.cs (1)
96throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (5)
78throw new ArgumentException(SR.Argument_InvalidOffLen); 268throw new ArgumentException(SR.Argument_InvalidOffLen); 298throw new ArgumentException(SR.Argument_InvalidOffLen); 397throw new ArgumentException(SR.Argument_InvalidOffLen); 410throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (1)
152throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (5)
48throw new ArgumentException(SR.Argument_OffsetAndCapacityOutOfBounds); 69throw new ArgumentException(SR.Argument_UnmanagedMemAccessorWrapAround); 249throw new ArgumentException(SR.Arg_BadDecimal); // Throw same Exception type as Decimal(int[]) ctor for compat 321throw new ArgumentException(SR.Argument_InvalidOffLen); 547throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (4)
88throw new ArgumentException(SR.Argument_InvalidSafeBufferOffLen); 109throw new ArgumentException(SR.ArgumentOutOfRange_UnmanagedMemStreamWrapAround); 558throw new ArgumentException(SR.Argument_InvalidSeekOrigin); 665throw new ArgumentException(SR.Arg_BufferTooSmall);
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1443throw new ArgumentException(SR.Format(SR.Argument_MinMaxValue, min, max));
src\libraries\System.Private.CoreLib\src\System\ParseNumbers.cs (2)
53throw new ArgumentException(SR.Arg_CannotHaveNegativeValue); 141throw new ArgumentException(SR.Arg_CannotHaveNegativeValue);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
34throw new ArgumentException(SR.Format_StringZeroLength);
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (1)
24_ => throw new ArgumentException(SR.Argument_InvalidMemberForNamedArgument)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (3)
237throw new ArgumentException(SR.Arg_InvalidTypeInSignature); 240throw new ArgumentException(SR.Arg_InvalidTypeInSignature); 273throw new ArgumentException(SR.Argument_InvalidTypeForDynamicMethod);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (1)
134throw new ArgumentException(SR.NotSupported_OutputStreamUsingTypeBuilder);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (5)
76throw new ArgumentException(SR.Argument_BadSigFormat); 137throw new ArgumentException(SR.Argument_BadSigFormat); 167throw new ArgumentException(SR.Argument_BadSigFormat); 185throw new ArgumentException(SR.Argument_BadSigFormat); 301throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (2)
128throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeOptionalCustomModifiers), nameof(parameterTypes))); 131throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeRequiredCustomModifiers), nameof(parameterTypes)));
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (1)
481throw new ArgumentException(SR.Format(SR.Arg_FieldDeclTarget, fieldInfo.Name, fieldInfo.DeclaringType, target.GetType()));
src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterModifier.cs (1)
13throw new ArgumentException(SR.Arg_ParmArraySize);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureByRefType.cs (1)
20public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureConstructedGenericType.cs (1)
54public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureGenericParameterType.cs (1)
31public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignaturePointerType.cs (1)
20public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
140throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_FallbackLoc, fallbackLocation));
src\libraries\System.Private.CoreLib\src\System\Resources\NeutralResourcesLanguageAttribute.cs (1)
25throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_FallbackLoc, location));
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (4)
192throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 208throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 225throw new ArgumentException(SR.Argument_MustBeRuntimeType); 540throw new ArgumentException(SR.Format(SR.Arg_InvalidSatelliteContract_Asm_Ver, a, v));
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (1)
151throw new ArgumentException(SR.Format(SR.Arg_ResourceNameNotExist, resourceName));
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
132throw new ArgumentException(SR.Argument_StreamNotReadable); 810throw new ArgumentException(SR.Resources_StreamNotValid); 848throw new ArgumentException(SR.Format(SR.Arg_ResourceFileUnsupportedVersion, CurrentVersion, version));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (2)
25throw new ArgumentException(SR.ArgumentException_NotIsomorphic); 31throw new ArgumentException(SR.Argument_StructArrayTooLarge);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (1)
416_ => throw new ArgumentException(SR.Format(SR.ComVariant_SizeMustMatchVariantSize, nameof(T), nameof(vt)))
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (3)
90throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 125throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 207throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
802throw new ArgumentException(SR.Arg_MustBeNFloat);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (4)
223throw new ArgumentException(SR.Argument_InvalidOffLen); 310throw new ArgumentException(SR.Argument_InvalidOffLen); 376throw new ArgumentException(SR.Arg_BufferTooSmall); 406throw new ArgumentException(SR.Argument_NeedStructWithNoRefs);
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\OptionalFieldAttribute.cs (1)
18throw new ArgumentException(SR.Serialization_OptionalFieldVersionValue);
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (1)
340throw new ArgumentException(SR.Argument_MustBeRuntimeType);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (8)
46throw new ArgumentException(SR.Argument_HasToBeArrayClass); 214throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, this)); 229throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType)); 496throw new ArgumentException(SR.Arg_IndexMustBeInt); 721throw new ArgumentException( 736throw new ArgumentException( 804throw new ArgumentException(SR.Format(SR.Arg_ObjObjEx, value?.GetType(), this)); 875throw new ArgumentException(SR.Format(SR.Arg_ObjObjEx, value?.GetType(), this));
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
67throw new ArgumentException(SR.Arg_MustBeSByte);
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (11)
39throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, tag)); 49throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, tag)); 52throw new ArgumentException(SR.Format(SR.Argument_InvalidElementText, text)); 68throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, value)); 115throw new ArgumentException(SR.Format(SR.Argument_InvalidElementName, attrName)); 118throw new ArgumentException(SR.Format(SR.Argument_InvalidElementValue, attrValue)); 141throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, value)); 159throw new ArgumentException(SR.ArgumentNull_Child); 183throw new ArgumentException(SR.Argument_AttributeNamesMustBeUnique); 197throw new ArgumentException(SR.Format(SR.Argument_InvalidElementName, name)); 200throw new ArgumentException(SR.Format(SR.Argument_InvalidElementValue, value));
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
266return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeSingle);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (1)
448throw new ArgumentException(SR.Arg_MustBeNullTerminatedString);
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (3)
114throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSimpleAssemblyName, startupHookPart)); 120throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSimpleAssemblyName, startupHookPart)); 204throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSignature,
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
513throw new ArgumentException(SR.Arg_MustBeString);
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (1)
175throw new ArgumentException(SR.Argument_ImplementIComparable);
src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (2)
257throw new ArgumentException(SR.Argument_ConversionOverflow); 299throw new ArgumentException(SR.Argument_ConversionOverflow);
src\libraries\System.Private.CoreLib\src\System\Text\DecoderExceptionFallback.cs (3)
80: base(SR.Arg_ArgumentException) 86: base(message) 98: base(message)
src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (7)
127throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 134throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 150throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 182throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 189throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 199throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 241throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (2)
257throw new ArgumentException(SR.Argument_ConversionOverflow); 298throw new ArgumentException(SR.Argument_ConversionOverflow);
src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (4)
81: base(SR.Arg_ArgumentException) 87: base(message) 99string? message, char charUnknown, int index) : base(message) 106string message, char charUnknownHigh, char charUnknownLow, int index) : base(message)
src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (1)
285throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (1)
243throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, Encoding.EncodingName, _fallbackBuffer.GetType()));
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (2)
1119throw new ArgumentException(SR.Argument_ConversionOverflow); 1438throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty,
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
1478throw new ArgumentException(SR.Arg_MustBeRune);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
877throw new ArgumentException(SR.ArgumentOutOfRange_OffsetOut); 894throw new ArgumentException(SR.Arg_LongerThanSrcString);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (2)
373throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType())); 656throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType()));
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
366throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType().ToString() ?? string.Empty)); 501throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType()));
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
896throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
8840 => throw new ArgumentException(SR.CancellationToken_CreateLinkedToken_TokensIsEmpty),
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.cs (1)
28throw new ArgumentException(SR.Argument_SemaphoreInitialMaximum);
src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (1)
281throw new ArgumentException(SR.SpinLock_TryReliableEnter_ArgumentException);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (8)
89throw new ArgumentException(SR.Format(SR.Argument_InvalidTypeWithPointersNotSupported, targetType)); 125throw new ArgumentException(SR.Argument_OverlapAlignmentMismatch); 163throw new ArgumentException(SR.Format(SR.Arg_BogusIComparer, comparer)); 290throw new ArgumentException(SR.Arg_CannotBeNaN); 315return new ArgumentException(SR.Format(SR.Argument_AddingDuplicateWithKey, key)); 530throw new ArgumentException(SR.Argument_IncompatibleArrayType); 721return new ArgumentException(SR.Argument_InvalidOffLen); 726return new ArgumentException(GetResourceString(resource));
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
413throw new ArgumentException(SR.Arg_MustBeTimeOnly);
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
287throw new ArgumentException(SR.Arg_MustBeTimeSpan);
src\libraries\System.Private.CoreLib\src\System\Tuple.cs (1)
1128throw new ArgumentException(SR.ArgumentException_TupleLastArgumentNotATuple);
src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (2)
34throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, this)); 55throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType));
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (3)
32throw new ArgumentException(SR.Argument_MustBeRuntimeFieldInfo); 35throw new ArgumentException(SR.Format(SR.Argument_TypedReferenceInvalidField, field.Name)); 42throw new ArgumentException(SR.Format(SR.Arg_TypeRefPrimitive, field.Name));
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
62throw new ArgumentException(SR.Arg_MustBeUInt128);
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
63throw new ArgumentException(SR.Arg_MustBeUInt16);
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
69throw new ArgumentException(SR.Arg_MustBeUInt32);
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
69throw new ArgumentException(SR.Arg_MustBeUInt64);
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
189throw new ArgumentException(SR.Arg_MustBeUIntPtr);
src\libraries\System.Private.CoreLib\src\System\UnitySerializationHolder.cs (1)
52throw new ArgumentException(SR.Format(SR.Argument_InvalidUnity, _data ?? "UnityType"));
src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (1)
1856throw new ArgumentException(SR.ArgumentException_ValueTupleLastArgumentNotAValueTuple);
src\System\Attribute.CoreCLR.cs (9)
456throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 495throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 543throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 582throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 599throw new ArgumentException(SR.Argument_InvalidParamInfo); 650throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 668throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 708throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 738throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass);
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
41throw new ArgumentException(SR.Arg_RankMultiDimNotSupported);
src\System\Delegate.CoreCLR.cs (6)
51throw new ArgumentException(SR.Arg_DlgtTargMeth); 242throw new ArgumentException(SR.Arg_DlgtTargMeth); 278throw new ArgumentException(SR.Arg_DlgtTargMeth); 316throw new ArgumentException(SR.Arg_DlgtTargMeth); 348throw new ArgumentException(SR.Arg_DlgtTargMeth); 382throw new ArgumentException(SR.Arg_DlgtTargMeth);
src\System\MulticastDelegate.CoreCLR.cs (2)
218throw new ArgumentException(SR.Arg_DlgtTypeMis); 543throw new ArgumentException(SR.Arg_DlgtNullInst);
src\System\Reflection\Emit\CustomAttributeBuilder.cs (13)
75throw new ArgumentException(SR.Argument_BadConstructor); 78throw new ArgumentException(SR.Argument_BadConstructorCallConv); 93throw new ArgumentException(SR.Argument_BadParameterCountsForConstructor); 98throw new ArgumentException(SR.Argument_BadTypeInCustomAttribute); 145throw new ArgumentException(SR.Argument_BadTypeInCustomAttribute); 149throw new ArgumentException(SR.Argument_NotAWritableProperty); 167throw new ArgumentException(SR.Argument_BadPropertyForConstructorBuilder); 203throw new ArgumentException(SR.Argument_BadTypeInCustomAttribute); 221throw new ArgumentException(SR.Argument_BadFieldForConstructorBuilder); 284throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 434throw new ArgumentException(SR.Format(SR.Argument_InvalidTypeForCA, value.GetType())); 507throw new ArgumentException(SR.Format(SR.Argument_BadParameterTypeForCAB, ot)); 519throw new ArgumentException(SR.Format(SR.Argument_BadParameterTypeForCAB, typename));
src\System\Reflection\Emit\DynamicILGenerator.cs (8)
44throw new ArgumentException(SR.Argument_MustBeRuntimeType); 82throw new ArgumentException(SR.Argument_InvalidOpCodeOnDynamicMethod); 143throw new ArgumentException(SR.Argument_MustBeRuntimeType); 355throw new ArgumentException(SR.Argument_ShouldNotSpecifyExceptionType); 368throw new ArgumentException(SR.Argument_MustBeRuntimeType); 484throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(requiredCustomModifiers), nameof(parameterTypes))); 487throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(optionalCustomModifiers), nameof(parameterTypes))); 1036throw new ArgumentException(SR.Format(SR.Argument_MethodDeclaringTypeGenericLcg, m, t));
src\System\Reflection\Emit\RuntimeFieldBuilder.cs (2)
27throw new ArgumentException(SR.Argument_BadFieldType); 147throw new ArgumentException(SR.Argument_ConstantNull);
src\System\Reflection\Emit\RuntimeILGenerator.cs (9)
190throw new ArgumentException(SR.Argument_UnclosedExceptionBlock); 281throw new ArgumentException(SR.Argument_BadLabel); 285throw new ArgumentException(SR.Argument_BadLabelContent); 313throw new ArgumentException(SR.Argument_BadLabel); 1017throw new ArgumentException(SR.Argument_ShouldNotSpecifyExceptionType); 1123throw new ArgumentException(SR.Argument_InvalidLabel); 1128throw new ArgumentException(SR.Argument_RedefinedLabel); 1362throw new ArgumentException(SR.Argument_TooManyFinallyClause); 1544throw new ArgumentException(SR.Argument_UnmatchingSymScope);
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
93throw new ArgumentException(SR.Arg_NoStaticVirtual);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (6)
85throw new ArgumentException(SR.Argument_DuplicateTypeName); 258throw new ArgumentException(SR.Argument_InvalidConstructorInfo); 269throw new ArgumentException(SR.Argument_InvalidConstructorInfo); 787throw new ArgumentException(SR.Argument_GlobalMembersMustBeStatic); 817throw new ArgumentException(SR.Argument_GlobalMembersMustBeStatic); 1144throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (15)
221throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 230throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 240throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 249throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 286throw new ArgumentException(SR.Format(SR.Argument_ConstantNotSupported, type)); 475throw new ArgumentException(SR.Argument_BadSizeForData); 510throw new ArgumentException(SR.Argument_BadTypeAttrNestedVisibilityOnNonNestedType); 518throw new ArgumentException(SR.Argument_BadTypeAttrNonNestedVisibilityNestedType); 525throw new ArgumentException(SR.Argument_BadTypeAttrInvalidLayout); 531throw new ArgumentException(SR.Argument_BadTypeAttrReservedBitsSet); 1074throw new ArgumentException(SR.ArgumentException_BadMethodImplBody); 1126throw new ArgumentException(SR.Argument_BadPInvokeMethod); 1129throw new ArgumentException(SR.Argument_BadPInvokeOnInterface); 1145throw new ArgumentException(SR.Argument_MethodRedefined); 1692throw new ArgumentException(SR.Argument_CannotSetParentToInterface);
src\System\Reflection\Emit\SignatureHelper.cs (8)
196throw new ArgumentException(SR.Argument_BadFieldSig); 225throw new ArgumentException(SR.NotSupported_MustBeModuleBuilder); 487throw new ArgumentException(SR.Argument_LargeInteger); 512throw new ArgumentException(SR.Argument_LargeInteger); 723throw new ArgumentException(SR.Argument_LargeInteger); 806throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(requiredCustomModifiers), nameof(arguments))); 809throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(optionalCustomModifiers), nameof(arguments))); 823throw new ArgumentException(SR.Argument_SigIsFinalized);
src\System\Reflection\FieldInfo.CoreCLR.cs (2)
17throw new ArgumentException(SR.Format( 27throw new ArgumentException(SR.Argument_InvalidHandle);
src\System\Reflection\Metadata\MetadataUpdater.cs (1)
41throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly);
src\System\Reflection\MethodBase.CoreCLR.cs (3)
18throw new ArgumentException(SR.Argument_InvalidHandle); 24throw new ArgumentException(SR.Format( 34throw new ArgumentException(SR.Argument_InvalidHandle);
src\System\Reflection\RtFieldInfo.cs (2)
93throw new ArgumentException(SR.Arg_TypedReference_Null); 111throw new ArgumentException(SR.Arg_TypedReference_Null);
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
393throw new ArgumentException(SR.Arg_DlgtTargMeth);
src\System\Reflection\RuntimeModule.cs (7)
38throw new ArgumentException(SR.Argument_InvalidGenericInstArray); 41throw new ArgumentException(SR.Argument_InvalidGenericInstArray); 43throw new ArgumentException(SR.Argument_InvalidGenericInstArray); 259throw new ArgumentException(SR.InvalidOperation_PropertyInfoNotAvailable); 262throw new ArgumentException(SR.InvalidOperation_EventInfoNotAvailable); 303throw new ArgumentException( 313throw new ArgumentException(
src\System\Reflection\RuntimePropertyInfo.cs (2)
338throw new ArgumentException(SR.Arg_GetMethNotFnd); 361throw new ArgumentException(SR.Arg_SetMethNotFnd);
src\System\Reflection\TypeNameResolver.CoreCLR.cs (1)
91return throwOnError ? throw new ArgumentException(SR.Argument_AssemblyGetTypeCannotSpecifyAssembly) : null;
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (4)
437throw new ArgumentException(SR.Arg_TypeNotSupported); 442throw new ArgumentException(SR.Arg_TypeNotSupported); 450throw new ArgumentException(SR.Arg_TypeNotSupported); 483throw new ArgumentException(SR.Arg_TypeNotSupported);
src\System\RuntimeType.ActivatorCache.cs (1)
62case ArgumentException: throw new ArgumentException(friendlyMessage);
src\System\RuntimeType.CoreCLR.cs (6)
1849throw new ArgumentException(SR.Format( 1877throw new ArgumentException(SR.Format( 1899throw new ArgumentException(SR.Format( 1961throw new ArgumentException(SR.Format( 2736throw new ArgumentException(SR.Argument_ArrayGetInterfaceMap); 3772throw new ArgumentException(SR.Format(SR.Acc_CreateGenericEx, this));
src\System\StubHelpers.cs (5)
167throw new ArgumentException(SR.Interop_Marshal_Unmappable_Char); 692throw new ArgumentException(SR.Argument_WrongSizeArrayInNativeStruct); 949throw new ArgumentException(SR.Arg_NDirectBadObject); 1127throw new ArgumentException(SR.Arg_MarshalAsAnyRestriction); 1156throw new ArgumentException(SR.Arg_NDirectBadObject);
System.Private.DataContractSerialization (17)
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
35throw new ArgumentException(nameof(xmlWriter));
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
511throw new ArgumentException(SR.Format(SR.JsonNamespaceMustBeEmpty, _attributeText));
System\Runtime\Serialization\SchemaImporter.cs (2)
75throw new ArgumentException(SR.Format(SR.CannotImportNullSchema)); 98throw new ArgumentException(SR.Format(SR.CannotImportNullDataContractName));
System\Runtime\Serialization\XmlObjectSerializerContext.cs (1)
199throw new ArgumentException(SR.Format(SR.NullKnownType, "knownTypes"));
System\Runtime\Serialization\XsdDataContractExporter.cs (5)
114throw new ArgumentException(SR.Format(SR.CannotExportNullAssembly, nameof(assemblies))); 146throw new ArgumentException(SR.Format(SR.CannotExportNullType, nameof(types))); 293throw new ArgumentException(SR.CannotExportNullKnownType); 317throw new ArgumentException(SR.Format(SR.CannotExportNullAssembly, nameof(assemblies))); 355throw new ArgumentException(SR.Format(SR.CannotExportNullType, nameof(types)));
System\Xml\XmlBaseWriter.cs (6)
272throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xmlns", ns)); 274throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xml", ns)); 334throw new ArgumentException(SR.Format(SR.XmlInvalidXmlSpace, _attributeValue)); 398throw new ArgumentException(SR.Format(SR.XmlInvalidXmlSpace, _attributeValue)); 2169throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xmlns", uri)); 2172throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xml", uri));
System\Xml\XmlCanonicalWriter.cs (1)
98throw new ArgumentException(SR.InvalidInclusivePrefixListCollection);
System.Private.Uri (2)
System\UriExt.cs (2)
25throw new ArgumentException(SR.Format(SR.net_uri_InvalidUriKind, uriKind)); 740throw new ArgumentException(SR.Format(SR.net_uri_InvalidUriKind, uriKind));
System.Private.Xml (124)
System\Xml\Core\XmlCharCheckingWriter.cs (5)
229throw new ArgumentException(SR.Format(SR.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(ws, i))); 339throw new ArgumentException(SR.Xml_EmptyName); 344throw new ArgumentException(SR.Format(len == 0 ? SR.Xml_BadStartNameChar : SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(ncname, len))); 352throw new ArgumentException(SR.Xml_EmptyName); 360throw new ArgumentException(string.Format(res, XmlException.BuildCharExceptionArgs(name, len)));
System\Xml\Core\XmlCharCheckingWriterAsync.cs (1)
175throw new ArgumentException(SR.Format(SR.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(ws, i)));
System\Xml\Core\XmlEncodedRawTextWriter.cs (3)
1629throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 1852throw new ArgumentException(SR.Format(SR.Xml_IndentCharsNotWhitespace, propertyName)); 1899throw new ArgumentException(SR.Format(SR.Xml_InvalidCharsInIndent, new string[] { propertyName, error }));
System\Xml\Core\XmlTextEncoder.cs (3)
199throw new ArgumentException(SR.Xml_SurrogatePairSplit); 420throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 459throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar);
System\Xml\Core\XmlTextReaderImpl.cs (1)
8155throw new ArgumentException((_incReadDecoder is IncrementalReadCharsDecoder) ? nameof(count) : "len");
System\Xml\Core\XmlTextWriter.cs (22)
390throw new ArgumentException(SR.Xml_InvalidQuote); 422throw new ArgumentException(SR.Xml_ClosedOrError); 426throw new ArgumentException(SR.Xml_NoRoot); 500throw new ArgumentException(SR.Xml_UndefPrefix); 544throw new ArgumentException(SR.Xml_NoNamespaces); 610throw new ArgumentException(SR.Xml_XmlnsBelongsToReservedNs); 631throw new ArgumentException(SR.Xml_XmlnsBelongsToReservedNs); 644throw new ArgumentException(SR.Xml_UndefPrefix); 684throw new ArgumentException(SR.Xml_NoNamespaces); 738throw new ArgumentException(SR.Xml_InvalidCDataChars); 764throw new ArgumentException(SR.Xml_InvalidCommentChars); 788throw new ArgumentException(SR.Xml_InvalidPiChars); 793throw new ArgumentException(SR.Xml_DupXmlDecl); 849throw new ArgumentException(SR.Xml_NonWhitespace); 1068throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns)); 1084throw new ArgumentException(SR.Xml_NoNamespaces); 1153throw new ArgumentException(SR.Format(SR.Xml_InvalidNameChars, name)); 1463throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace); 1491throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 1738throw new ArgumentException(SR.Format(SR.Xml_InvalidNameChars, name)); 1760throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value)); 1777throw new ArgumentException(SR.Xml_InvalidPrefix);
System\Xml\Core\XmlUtf8RawTextWriter.cs (3)
1456throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 1714throw new ArgumentException(SR.Format(SR.Xml_IndentCharsNotWhitespace, propertyName)); 1761throw new ArgumentException(SR.Format(SR.Xml_InvalidCharsInIndent, new string[] { propertyName, error }));
System\Xml\Core\XmlWellFormedWriter.cs (20)
345throw new ArgumentException(SR.Xml_NoRoot); 448throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 613throw new ArgumentException(SR.Xml_EmptyLocalName); 648throw new ArgumentException(SR.Xml_XmlnsPrefix); 671throw new ArgumentException(SR.Xml_XmlnsPrefix); 681throw new ArgumentException(SR.Xml_XmlPrefix); 778throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 782throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace); 825throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value)); 900throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? SR.Xml_DupXmlDecl : SR.Xml_CannotWriteXmlDecl); 960throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 1013throw new ArgumentException(SR.Xml_NonWhitespace); 1294throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns)); 1616throw new ArgumentException(SR.Xml_XmlPrefix); 1626throw new ArgumentException(SR.Xml_XmlnsPrefix); 1643throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix)); 1727throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix)); 1735throw new ArgumentException(SR.Xml_XmlPrefix); 1740throw new ArgumentException(SR.Xml_XmlnsPrefix); 2067return new ArgumentException(SR.Format(SR.Xml_InvalidNameCharsDetail, args));
System\Xml\Core\XmlWellFormedWriterAsync.cs (13)
45throw new ArgumentException(SR.Xml_NoRoot); 221throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 453throw new ArgumentException(SR.Xml_EmptyLocalName); 506throw new ArgumentException(SR.Xml_XmlnsPrefix); 529throw new ArgumentException(SR.Xml_XmlnsPrefix); 539throw new ArgumentException(SR.Xml_XmlPrefix); 683throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 687throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace); 729throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value)); 801throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? SR.Xml_DupXmlDecl : SR.Xml_CannotWriteXmlDecl); 861throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 915throw new ArgumentException(SR.Xml_NonWhitespace); 1145throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Core\XmlWriter.cs (1)
234throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Core\XmlWriterAsync.cs (1)
220throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1257throw new ArgumentException(SR.Format(SR.XPathDocument_SchemaSetNotAllowed, null));
System\Xml\Dom\XmlAttribute.cs (1)
30throw new ArgumentException(SR.Xdom_Attr_Name);
System\Xml\Dom\XmlAttributeCollection.cs (7)
121throw new ArgumentException(SR.Xdom_AttrCol_Object); 140throw new ArgumentException(SR.Xdom_NamedNode_Context); 159throw new ArgumentException(SR.Xdom_NamedNode_Context); 185throw new ArgumentException(SR.Xdom_AttrCol_Insert); 188throw new ArgumentException(SR.Xdom_NamedNode_Context); 214throw new ArgumentException(SR.Xdom_AttrCol_Insert); 217throw new ArgumentException(SR.Xdom_NamedNode_Context);
System\Xml\Dom\XmlDeclaration.cs (4)
24throw new ArgumentException(SR.Xdom_Version); 27throw new ArgumentException(SR.Format(SR.Xdom_standalone, standalone)); 65throw new ArgumentException(SR.Format(SR.Xdom_standalone, value)); 116throw new ArgumentException(SR.Xdom_Version);
System\Xml\Dom\XmlDocument.cs (4)
246throw new ArgumentException(SR.Format(SR.Xdom_Attr_Reserved_XmlNS, namespaceURI)); 1161throw new ArgumentException(SR.Format(SR.Arg_CannotCreateNode, type)); 1256throw new ArgumentException(SR.Format(SR.Xdom_Invalid_NT_String, nodeTypeString)); 1496throw new ArgumentException(SR.Format(SR.XmlDocument_NodeNotFromDocument, nameof(nodeToValidate)));
System\Xml\Dom\XmlDocumentFragment.cs (1)
51throw new ArgumentException(SR.Xdom_Node_Null_Doc);
System\Xml\Dom\XmlElement.cs (1)
31throw new ArgumentException(SR.Xdom_Empty_LocalName);
System\Xml\Dom\XmlEntityReference.cs (1)
41throw new ArgumentException(SR.Xdom_InvalidCharacter_EntityReference);
System\Xml\Dom\XmlLoader.cs (4)
37throw new ArgumentException(SR.Xdom_Load_NoDocument); 39throw new ArgumentException(SR.Xdom_Load_NoReader); 75throw new ArgumentException(SR.Xdom_Load_NoDocument); 77throw new ArgumentException(SR.Xdom_Load_NoReader);
System\Xml\Dom\XmlNode.cs (10)
30throw new ArgumentException(SR.Xdom_Node_Null_Doc); 251throw new ArgumentException(SR.Xdom_Node_Insert_Child); 260throw new ArgumentException(SR.Xdom_Node_Insert_Path); 268throw new ArgumentException(SR.Xdom_Node_Insert_Context); 365throw new ArgumentException(SR.Xdom_Node_Insert_Child); 374throw new ArgumentException(SR.Xdom_Node_Insert_Path); 382throw new ArgumentException(SR.Xdom_Node_Insert_Context); 494throw new ArgumentException(SR.Xdom_Node_Remove_Child); 587throw new ArgumentException(SR.Xdom_Node_Insert_Child); 593throw new ArgumentException(SR.Xdom_Node_Insert_Context);
System\Xml\Dom\XmlSignificantWhiteSpace.cs (2)
15throw new ArgumentException(SR.Xdom_WS_Char); 88throw new ArgumentException(SR.Xdom_WS_Char);
System\Xml\Dom\XmlWhitespace.cs (2)
16throw new ArgumentException(SR.Xdom_WS_Char); 81throw new ArgumentException(SR.Xdom_WS_Char);
System\Xml\Schema\XmlSchemaValidator.cs (1)
382throw new ArgumentException(SR.Sch_InvalidPartialValidationType);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
75throw new ArgumentException(SR.Format(SR.XmlInternalError, "xmlMapping")); 87throw new ArgumentException(SR.Format(SR.XmlInternalError, "xmlMapping"));
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
24throw new ArgumentException(SR.Format(SR.XmlInternalError, nameof(xmlMapping))); 33throw new ArgumentException(SR.Format(SR.XmlInternalError, nameof(xmlMapping)));
System\Xml\XmlConvert.cs (6)
722throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption))); 1233throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption))); 1534return new ArgumentException(res); 1551return new ArgumentException(string.Format(res, arg)); 1568return new ArgumentException(string.Format(res, args)); 1784throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption)));
System\Xml\XmlNamespacemanager.cs (2)
133throw new ArgumentException(SR.Xml_XmlPrefix); 137throw new ArgumentException(SR.Xml_XmlnsPrefix);
System.Private.Xml.Linq (21)
System\Xml\Linq\XAttribute.cs (7)
710throw new ArgumentException(SR.Format(SR.Argument_NamespaceDeclarationPrefixed, name.LocalName)); 716if (name.LocalName != "xml") throw new ArgumentException(SR.Argument_NamespaceDeclarationXml); 722throw new ArgumentException(SR.Argument_NamespaceDeclarationXmlns); 731throw new ArgumentException(SR.Argument_NamespaceDeclarationXml); 736throw new ArgumentException(SR.Argument_NamespaceDeclarationXmlns); 746throw new ArgumentException(SR.Argument_NamespaceDeclarationXml); 752throw new ArgumentException(SR.Argument_NamespaceDeclarationXmlns);
System\Xml\Linq\XContainer.cs (2)
823XObject => throw new ArgumentException(SR.Argument_XObjectValue), 827if (s == null) throw new ArgumentException(SR.Argument_ConvertToString);
System\Xml\Linq\XDocument.cs (5)
857throw new ArgumentException(SR.Argument_AddAttribute); 862throw new ArgumentException(SR.Argument_AddAttribute); 910throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.CDATA)); 912throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.Document)); 940throw new ArgumentException(SR.Argument_AddNonWhitespace);
System\Xml\Linq\XElement.cs (2)
2125if (node is XDocument) throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.Document)); 2126if (node is XDocumentType) throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.DocumentType));
System\Xml\Linq\XLinq.cs (1)
110if (content is XAttribute) throw new ArgumentException(SR.Argument_AddAttribute);
System\Xml\Linq\XName.cs (1)
78if (i <= 1 || i == expandedName.Length - 1) throw new ArgumentException(SR.Format(SR.Argument_InvalidExpandedName, expandedName));
System\Xml\Linq\XProcessingInstruction.cs (1)
162if (string.Equals(name, "xml", StringComparison.OrdinalIgnoreCase)) throw new ArgumentException(SR.Format(SR.Argument_InvalidPIName, name));
System\Xml\XPath\XNodeNavigator.cs (2)
927if (node is XDocumentType) throw new ArgumentException(SR.Format(SR.Argument_CreateNavigator, XmlNodeType.DocumentType)); 931if (text.GetParent() is XDocument) throw new ArgumentException(SR.Format(SR.Argument_CreateNavigator, XmlNodeType.Whitespace));
System.Reflection.Context (5)
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (2)
107throw new ArgumentException(SR.Argument_GetMethNotFnd); 116throw new ArgumentException(SR.Argument_GetMethNotFnd);
System\Reflection\Context\Virtual\VirtualPropertyInfo.cs (2)
29throw new ArgumentException(SR.ArgumentNull_GetterOrSetterMustBeSpecified); 33throw new ArgumentException(SR.Argument_PropertyTypeFromDifferentContext);
System\Reflection\Context\Virtual\VirtualPropertyInfo.PropertySetter.cs (1)
50throw new ArgumentException(SR.Format(SR.Argument_ObjectArgumentMismatch, value.GetType(), ReturnType));
System.Reflection.Emit (25)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (5)
76throw new ArgumentException(SR.Argument_BadSigFormat); 137throw new ArgumentException(SR.Argument_BadSigFormat); 167throw new ArgumentException(SR.Argument_BadSigFormat); 185throw new ArgumentException(SR.Argument_BadSigFormat); 301throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\Emit\FieldBuilderImpl.cs (5)
55throw new ArgumentException(SR.Argument_ConstantNull); 83throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 92throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 101throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 109throw new ArgumentException(SR.Argument_ConstantDoesntMatch);
System\Reflection\Emit\ILGeneratorImpl.cs (4)
72throw new ArgumentException(SR.Argument_ShouldNotSpecifyExceptionType); 491throw new ArgumentException(SR.Argument_InvalidLabel); 761throw new ArgumentException(SR.Argument_RedefinedLabel); 794throw new ArgumentException(SR.Argument_InvalidLabel);
System\Reflection\Emit\MethodBuilderImpl.cs (1)
55throw new ArgumentException(SR.Argument_NoStaticVirtual);
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
1243throw new ArgumentException(SR.Argument_GlobalMembersMustBeStatic); 1272throw new ArgumentException(SR.Argument_GlobalMembersMustBeStatic); 1306throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\Emit\PseudoCustomAttributesData.cs (2)
34throw new ArgumentException(SR.Argument_DllNameCannotBeEmpty); 100throw new ArgumentException(SR.Argument_DllNameCannotBeEmpty);
System\Reflection\Emit\TypeBuilderImpl.cs (5)
321throw new ArgumentException(SR.ArgumentException_BadMethodImplBody); 386throw new ArgumentException(SR.Argument_BadPInvokeMethod); 391throw new ArgumentException(SR.Argument_BadPInvokeOnInterface); 403throw new ArgumentException(SR.Argument_MethodRedefined); 567throw new ArgumentException(SR.Argument_CannotSetParentToInterface);
System.Reflection.Metadata (3)
System\Reflection\Metadata\BlobWriterImpl.cs (2)
216throw new ArgumentException(SR.Format(SR.InvalidConstantValueOfType, type)); 289throw new ArgumentException(SR.Format(SR.InvalidConstantValueOfType, type));
System\Reflection\Throw.cs (1)
35throw new ArgumentException(SR.Format(SR.UnexpectedHandleKind, kind));
System.Reflection.MetadataLoadContext (17)
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
216public sealed override object CreateInstance(string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture, object?[]? activationAttributes) => throw new ArgumentException(SR.Arg_ReflectionOnlyInvoke);
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (1)
108throw new ArgumentException(SR.Format(SR.SpecifiedFileNameInvalid, moduleName)); // Name not in manifest.
System\Reflection\TypeLoading\General\HashHelpers.cs (1)
50throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
118throw new ArgumentException(SR.Format(SR.MakeGenericType_NotLoadedByMetadataLoadContext, typeArgument));
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (3)
107throw new ArgumentException(SR.Arg_MustBeEnum); 118throw new ArgumentException(SR.Argument_InvalidEnum); 123throw new ArgumentException(SR.Argument_InvalidEnum);
System\Reflection\TypeLoading\Types\RoByRefType.cs (1)
26public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (1)
132public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (2)
116throw new ArgumentException(SR.Format(SR.MakeGenericType_NotLoadedByMetadataLoadContext, typeArgument)); 224public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (2)
170public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass); 196protected internal sealed override RoType ComputeEnumUnderlyingType() => throw new ArgumentException(SR.Arg_MustBeEnum);
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (2)
42public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass); 64protected internal sealed override RoType ComputeEnumUnderlyingType() => throw new ArgumentException(SR.Arg_MustBeEnum);
System\Reflection\TypeLoading\Types\RoHasElementType.cs (1)
77protected internal sealed override RoType ComputeEnumUnderlyingType() => throw new ArgumentException(SR.Arg_MustBeEnum);
System\Reflection\TypeLoading\Types\RoPointerType.cs (1)
26public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System.Resources.Extensions (10)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (4)
75throw new ArgumentException(SR.Argument_StreamNotWritable); 164throw new ArgumentException(SR.NotSupported_UnseekableStream); 606throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength); 616throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
132throw new ArgumentException(SR.Argument_StreamNotReadable); 810throw new ArgumentException(SR.Resources_StreamNotValid); 848throw new ArgumentException(SR.Format(SR.Arg_ResourceFileUnsupportedVersion, CurrentVersion, version));
System\Resources\Extensions\PreserializedResourceWriter.cs (3)
205throw new ArgumentException(SR.NotSupported_UnseekableStream); 261throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength); 286throw new ArgumentException(nameof(ResourceDataRecord.Format));
System.Resources.Writer (4)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (4)
75throw new ArgumentException(SR.Argument_StreamNotWritable); 164throw new ArgumentException(SR.NotSupported_UnseekableStream); 606throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength); 616throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength);
System.Runtime.Caching (6)
System\Runtime\Caching\HostFileChangeMonitor.cs (2)
169throw new ArgumentException(RH.Format(SR.Empty_collection, nameof(filePaths))); 186throw new ArgumentException(RH.Format(SR.Collection_contains_null_or_empty_string, nameof(filePaths)));
System\Runtime\Caching\MemoryCache.cs (4)
456throw new ArgumentException(RH.Format(SR.Empty_collection, nameof(keys))); 463throw new ArgumentException(RH.Format(SR.Collection_contains_null_element, nameof(keys))); 738throw new ArgumentException(SR.Invalid_argument_combination); 863throw new ArgumentException(RH.Format(SR.Collection_contains_null_element, nameof(keys)));
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (1)
3900throw new ArgumentException(SR.Format(SR.Argument_MinMaxValue, min, max));
System\Numerics\Complex.cs (1)
2190throw new ArgumentException(SR.Arg_HexStyleNotSupported);
System.Runtime.Serialization.Formatters (7)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Runtime\Serialization\FormatterServices.cs (2)
213throw new ArgumentException(SR.Argument_InvalidFieldInfo); 224throw new ArgumentException(SR.Argument_DataLengthDifferent);
System\Runtime\Serialization\ObjectManager.cs (1)
779throw new ArgumentException(SR.Serialization_NotISer);
System\Runtime\Serialization\ValueTypeFixupInfo.cs (3)
37throw new ArgumentException(SR.Argument_MustSupplyParent); 53throw new ArgumentException(SR.Argument_MemberAndArray); 58throw new ArgumentException(SR.Argument_MustSupplyContainer);
System.Security.Cryptography (59)
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (4)
102throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MissingFields); 107throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MismatchedPJ); 113throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MismatchedPGY); 116throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MismatchedQX);
System\Security\Cryptography\AesCcm.cs (1)
84throw new ArgumentException(SR.Cryptography_PlaintextCiphertextLengthMismatch);
System\Security\Cryptography\AesGcm.cs (1)
152throw new ArgumentException(SR.Cryptography_PlaintextCiphertextLengthMismatch);
System\Security\Cryptography\AsnEncodedDataCollection.cs (2)
71throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 75throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\Base64Transforms.cs (1)
388public static void ThrowInvalidOffLen() => throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\CapiHelper.Unix.cs (3)
18_ => throw new ArgumentException(SR.Argument_InvalidValue), 48_ => throw new ArgumentException(SR.Argument_InvalidValue), 80throw new ArgumentException(SR.Argument_InvalidValue);
System\Security\Cryptography\ChaCha20Poly1305.cs (1)
97throw new ArgumentException(SR.Cryptography_PlaintextCiphertextLengthMismatch);
System\Security\Cryptography\CspParameters.cs (1)
43throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value)));
System\Security\Cryptography\DES.cs (1)
54throw new ArgumentException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\ECCurve.cs (1)
81throw new ArgumentException(SR.Format(SR.Cryptography_InvalidCurveOid, value.Value));
System\Security\Cryptography\HashAlgorithm.cs (4)
82throw new ArgumentException(SR.Argument_InvalidValue); 84throw new ArgumentException(SR.Argument_InvalidOffLen); 240throw new ArgumentException(SR.Argument_InvalidValue); 242throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\HashProvider.cs (1)
27throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\IncrementalHash.cs (1)
94throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\OidCollection.cs (2)
77throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 81throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\PemEncoding.cs (1)
332throw new ArgumentException(SR.Argument_PemEncoding_EncodedSizeTooLarge);
System\Security\Cryptography\RandomNumberGenerator.cs (2)
106throw new ArgumentException(SR.Argument_InvalidRandomRange); 402throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\TripleDES.cs (1)
54throw new ArgumentException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (3)
499throw new ArgumentException(SR.Cryptography_CertReq_DatesReversed); 636throw new ArgumentException(SR.Cryptography_CertReq_DatesReversed); 814throw new ArgumentException(SR.Cryptography_CertReq_DatesReversed);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (3)
141throw new ArgumentException(SR.Cryptography_CRLBuilder_DatesReversed); 187throw new ArgumentException(SR.Cryptography_CertReq_RSAPaddingRequired); 325throw new ArgumentException(SR.Cryptography_CRLBuilder_DatesReversed);
System\Security\Cryptography\X509Certificates\DSACertificateExtensions.cs (1)
44throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (1)
41throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
System\Security\Cryptography\X509Certificates\FindPal.cs (5)
178throw new ArgumentException(SR.Argument_InvalidOidValue); 222throw new ArgumentException(SR.Argument_InvalidOidValue); 227throw new ArgumentException(SR.Argument_InvalidOidValue); 229throw new ArgumentException(SR.Argument_InvalidOidValue); 239throw new ArgumentException(SR.Argument_InvalidOidValue);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (1)
41throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
103throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, "flag"));
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (2)
285throw new ArgumentException(SR.Cryptography_X509_AIA_NullValue); 330throw new ArgumentException(SR.Cryptography_X509_AIA_MustNotBuildEmpty);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
757throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (2)
63throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 67throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\X509Certificates\X509ChainPolicy.cs (4)
62throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value))); 76throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value))); 90throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value))); 104throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value)));
System\Security\Cryptography\X509Certificates\X509Extension.cs (1)
84throw new ArgumentException(SR.Cryptography_X509_ExtensionMismatch);
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (2)
82throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 86throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs (1)
33throw new ArgumentException(SR.Cryptography_InvalidPaddingMode);
System\Security\Cryptography\X509Certificates\X509Store.cs (3)
40throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(storeLocation))); 52_ => throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(storeName))), 66throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(storeLocation)));
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (1)
431throw new ArgumentException(SR.Sign1SignHeaderDuplicateLabels);
System.Text.Encoding.CodePages (9)
System\Text\DBCSCodePageEncoding.cs (2)
541throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, EncodingName, encoder.Fallback.GetType())); 657throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, EncodingName, encoder.Fallback.GetType()));
System\Text\DecoderFallbackBufferHelper.cs (6)
65throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 72throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 88throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 121throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 128throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 138throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
System\Text\EncodingByteBuffer.cs (1)
42throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, _encoder.Encoding.EncodingName, _encoder.Fallback.GetType()));
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\TextEncoder.cs (1)
624throw new ArgumentException(SR.TextEncoderDoesNotImplementMaxOutputCharsPerInputChar);
System.Text.Json (11)
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
324throw new ArgumentException(SR.SerializationInvalidBufferSize); 420throw new ArgumentException(SR.DefaultIgnoreConditionInvalid);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.cs (2)
37throw new ArgumentException(nameof(propertyInfo.DeclaringType)); 43throw new ArgumentException(nameof(propertyInfo.PropertyName));
System\Text\Json\ThrowHelper.cs (4)
70return new ArgumentException(message); 487throw new ArgumentException(SR.CannotWriteCommentWithEmbeddedDelimiter); 515throw new ArgumentException(SR.Format(SR.CannotEncodeInvalidUTF8, builder)); 521throw new ArgumentException(SR.Format(SR.CannotEncodeInvalidUTF16, $"0x{charAsInt:X2}"));
System\Text\Json\ThrowHelper.Serialization.cs (1)
21throw new ArgumentException(SR.Format(SR.DeserializeWrongType, type, value.GetType()));
System\Text\Json\Writer\Utf8JsonWriter.cs (2)
140throw new ArgumentException(SR.StreamNotWritable); 202throw new ArgumentException(SR.StreamNotWritable);
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
105throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Text\RegularExpressions\GroupCollection.cs (1)
119throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Text\RegularExpressions\RegexParseException.cs (1)
29internal RegexParseException(RegexParseError error, int offset, string message) : base(message)
System.Text.RegularExpressions.Generator (2)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParseException.cs (1)
29internal RegexParseException(RegexParseError error, int offset, string message) : base(message)
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.cs (1)
212throw new ArgumentException(SR.Parallel_Invoke_ActionNull);
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\ActivatingKeyTipEventArgs.cs (2)
89throw new ArgumentException(Microsoft.Windows.Controls.SR.InvalidKeyTipOffset); 108throw new ArgumentException(Microsoft.Windows.Controls.SR.InvalidKeyTipOffset);
Microsoft\Windows\Controls\Ribbon\RibbonControlLength.cs (3)
53throw new ArgumentException(Microsoft.Windows.Controls.SR.Format(Microsoft.Windows.Controls.SR.InvalidCtorParameterNoNaN, "value")); 58throw new ArgumentException(Microsoft.Windows.Controls.SR.Format(Microsoft.Windows.Controls.SR.InvalidCtorParameterNoInfinityForStarSize, "value")); 66throw new ArgumentException(Microsoft.Windows.Controls.SR.Format(Microsoft.Windows.Controls.SR.InvalidCtorParameterUnknownRibbonControlLengthUnitType, "type"));
System.Xaml (34)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (3)
353throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 366throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 371throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, attrType.Name));
System\Windows\Markup\StaticExtension.cs (5)
69throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 76throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 86throw new ArgumentException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, nameof(IXamlTypeResolver))); 96throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 112throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, typeNameForError is not null ? $"{typeNameForError}.{_member}" : _member));
System\Windows\Markup\StaticExtensionsToInstanceDescriptorsConverter.cs (1)
34throw new ArgumentException(SR.Format(SR.MustBeOfType, nameof(value), nameof(StaticExtension)));
System\Windows\Markup\TypeExtensionConverter.cs (1)
34throw new ArgumentException(SR.Format(SR.MustBeOfType, nameof(value), nameof(TypeExtension)));
System\Xaml\Context\ServiceProviderContext.cs (5)
142throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 158throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "types")); 176throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 192throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "types")); 212throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties"));
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
884throw new ArgumentException(SR.NamespaceDeclarationPrefixCannotBeNull); 888throw new ArgumentException(SR.NamespaceDeclarationNamespaceCannotBeNull);
System\Xaml\NameScope.cs (5)
35throw new ArgumentException(SR.NameScopeNameNotEmptyString); 40throw new ArgumentException(SR.Format(SR.NameScopeInvalidIdentifierName, name)); 58throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, name)); 73throw new ArgumentException(SR.NameScopeNameNotEmptyString); 78throw new ArgumentException(SR.Format(SR.NameScopeNameNotFound, name));
System\Xaml\NameScopeDictionary.cs (6)
45throw new ArgumentException(SR.NameScopeNameNotEmptyString); 49throw new ArgumentException(SR.Format(SR.NameScopeInvalidIdentifierName, name)); 74throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, name)); 85throw new ArgumentException(SR.NameScopeNameNotEmptyString); 100throw new ArgumentException(SR.Format(SR.NameScopeNameNotFound, name)); 110throw new ArgumentException(SR.NameScopeNameNotEmptyString);
System\Xaml\Parser\MeScanner.cs (1)
317throw new ArgumentException(SR.MalformedPropertyName);
System\Xaml\Schema\XamlValueConverter.cs (1)
34throw new ArgumentException(SR.Format(SR.ArgumentRequired, $"{nameof(converterType)}, {nameof(targetType)}, {nameof(name)}"));
System\Xaml\XamlMarkupExtensionWriter.cs (1)
180throw new ArgumentException(SR.XamlMarkupExtensionWriterCannotWriteNonstringValue);
System\Xaml\XamlSchemaContext.cs (2)
286throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "xamlTypeName.TypeArguments")); 308throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "typeArguments"));
System\Xaml\XamlType.cs (1)
1480throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "typeArguments"));
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
539throw new ArgumentException($"AssemblyMetadataAttribute with key {key} was not found.");
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
539throw new ArgumentException($"AssemblyMetadataAttribute with key {key} was not found.");
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
539throw new ArgumentException($"AssemblyMetadataAttribute with key {key} was not found.");
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
539throw new ArgumentException($"AssemblyMetadataAttribute with key {key} was not found.");
Templates.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
539throw new ArgumentException($"AssemblyMetadataAttribute with key {key} was not found.");
TestExclusionListTasks (18)
src\tasks\AndroidAppBuilder\ApkBuilder.cs (15)
59throw new ArgumentException($"AppDir='{AppDir}' is empty or doesn't exist"); 64throw new ArgumentException($"MainLibraryFileName='{mainLibraryFileName}' was not found in AppDir='{AppDir}'"); 69throw new ArgumentException("RuntimeIdentifier should not be empty and should contain a valid android RID"); 74throw new ArgumentException($"ProjectName='{ProjectName}' should not not contain spaces."); 88throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or empty (can be set via ANDROID_SDK_ROOT envvar)."); 93throw new ArgumentException($"Android NDK='{AndroidNdk}' was not found or empty (can be set via ANDROID_NDK_ROOT envvar)."); 103throw new ArgumentException($"Using DiagnosticPorts requires diagnostics_tracing runtime component, which was not included in 'RuntimeComponents' item group. @RuntimeComponents: '{string.Join(", ", RuntimeComponents)}'"); 126throw new ArgumentException($"BuildApiLevel={BuildApiLevel} < MinApiLevel={MinApiLevel}. " + 132throw new ArgumentException($"BuildApiLevel={BuildApiLevel} < TargetApiLevel={TargetApiLevel}. " + 140throw new ArgumentException($"{buildToolsFolder} was not found."); 238throw new ArgumentException($"API level={BuildApiLevel} is not downloaded in Android SDK"); 261throw new ArgumentException($"{monoRuntimeLib} was not found"); 544throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or incorrect (can be set via ANDROID_SDK_ROOT envvar)."); 569throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or incorrect (can be set via ANDROID_SDK_ROOT envvar)."); 610throw new ArgumentException($"Android SDK ({androidSdkDir}) doesn't contain build-tools.");
src\tasks\Common\Utils.cs (3)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
UIAutomationClient (19)
MS\Internal\Automation\Misc.cs (3)
154throw new ArgumentException(SR.UnsupportedPattern); 176throw new ArgumentException(SR.Format(SR.GenericInvalidArgument, argName)); 184throw new ArgumentException(SR.GetResourceString(reason, null));
MS\Internal\Automation\ProxyManager.cs (1)
737throw new ArgumentException(SR.NonclientClassnameCannotBeUsedWithFlagsOrImagename);
System\Windows\Automation\Automation.cs (2)
187throw new ArgumentException( SR.ParamsNotApplicableToWindowClosedEvent ); 238throw new ArgumentException( SR.AtLeastOnePropertyMustBeSpecified );
System\Windows\Automation\AutomationElement.cs (4)
511return new ArgumentException(SR.UnsupportedProperty); 720throw new ArgumentException(SR.UnsupportedPattern); 1305throw new ArgumentException(SR.TreeScopeNeedAtLeastOne); 1309throw new ArgumentException(SR.TreeScopeElementChildrenDescendantsOnly);
System\Windows\Automation\CacheRequest.cs (2)
306throw new ArgumentException(SR.TreeScopeNeedAtLeastOne); 311throw new ArgumentException(SR.TreeScopeElementChildrenDescendantsOnly);
System\Windows\Automation\ItemContainerPattern.cs (2)
133throw new ArgumentException(SR.UnsupportedProperty); 144throw new ArgumentException(SR.Format(SR.PropertyConditionIncorrectType, property.ProgrammaticName, expectedType.Name));
System\Windows\Automation\PropertyCondition.cs (2)
130throw new ArgumentException(SR.UnsupportedProperty); 141throw new ArgumentException(SR.Format(SR.PropertyConditionIncorrectType, property.ProgrammaticName, expectedType.Name));
System\Windows\Automation\Text\TextRange.cs (2)
187throw new ArgumentException(SR.UnsupportedAttribute); 243throw new ArgumentException(SR.UnsupportedAttribute);
System\Windows\Automation\TextPattern.cs (1)
223throw new ArgumentException(SR.ScreenCoordinatesOutsideBoundingRect);
UIAutomationClientSideProviders (5)
MS\Internal\AutomationProxies\Accessible.cs (1)
1388throw new ArgumentException(SR.InvalidParameter);
MS\Internal\AutomationProxies\WindowsListView.cs (2)
832throw new ArgumentException(SR.InvalidParameter); 841throw new ArgumentException(SR.InvalidParameter);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
1269throw new ArgumentException(name);
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
218throw new ArgumentException(SR.InvalidParameter);
UIAutomationProvider (2)
System\Windows\Automation\Provider\AutomationInteropProvider.cs (2)
209throw new ArgumentException(SR.Format(SR.GenericInvalidArgument, argName)); 217throw new ArgumentException(SR.GetResourceString(reason, null));
WasmAppBuilder (3)
src\tasks\Common\Utils.cs (3)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
WindowsFormsIntegration (2)
System\Windows\Integration\PropertyMap.cs (1)
161throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.WFI_PropertyDoesntExist, propertyName, SourceObject.GetType().FullName));
System\Windows\Integration\WindowsFormsHost.cs (1)
325throw new ArgumentException(SR.Host_ChildCantBeTopLevelForm);
WorkloadBuildTasks (3)
src\tasks\Common\Utils.cs (3)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
xunit.console (34)
CommandLine.cs (24)
64var reporter = reporters.FirstOrDefault(r => r.RunnerSwitch == unknownOption) ?? throw new ArgumentException($"unknown option: -{unknownOption}"); 67throw new ArgumentException("only one reporter is allowed"); 100throw new ArgumentException($"error: unknown command line option: {option.Value}"); 215throw new ArgumentException($"expecting assembly, got config file: {assemblyFile}"); 217throw new ArgumentException($"file not found: {assemblyFile}"); 227throw new ArgumentException($"config file not found: {configFile}"); 242throw new ArgumentException($"unknown command line option: {option.Key}"); 318throw new ArgumentException("missing argument for -appdomains"); 334throw new ArgumentException("incorrect argument value for -appdomains (must be 'ifavailable', 'required', or 'denied')"); 341throw new ArgumentException("missing argument for -maxthreads"); 356throw new ArgumentException("incorrect argument value for -maxthreads (must be 'default', 'unlimited', or a positive number)"); 365throw new ArgumentException("missing argument for -parallel"); 368throw new ArgumentException("incorrect argument value for -parallel"); 402throw new ArgumentException("missing argument for -trait"); 406throw new ArgumentException("incorrect argument format for -trait (should be \"name=value\")"); 415throw new ArgumentException("missing argument for -notrait"); 419throw new ArgumentException("incorrect argument format for -notrait (should be \"name=value\")"); 428throw new ArgumentException("missing argument for -class"); 435throw new ArgumentException("missing argument for -noclass"); 442throw new ArgumentException("missing argument for -method"); 449throw new ArgumentException("missing argument for -nomethod"); 456throw new ArgumentException("missing argument for -namespace"); 463throw new ArgumentException("missing argument for -nonamespace"); 473throw new ArgumentException($"missing filename for {option.Key}");
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Dependency.cs (2)
15throw new ArgumentException(nameof(name)); 19throw new ArgumentException(nameof(version));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Library.cs (3)
35throw new ArgumentException(nameof(type)); 39throw new ArgumentException(nameof(name)); 43throw new ArgumentException(nameof(version));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\ResourceAssembly.cs (2)
14throw new ArgumentException(nameof(path)); 18throw new ArgumentException(nameof(locale));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\RuntimeFallbacks.cs (1)
20throw new ArgumentException(nameof(runtime));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\TargetInfo.cs (1)
17throw new ArgumentException(nameof(framework));
ConsoleRunner.cs (1)
45throw new ArgumentException("must specify at least one assembly");