4959 references to ArgumentException
aspire (11)
Aspire.Azure.Messaging.EventHubs (3)
Aspire.Azure.Messaging.ServiceBus (3)
Aspire.Azure.Messaging.WebPubSub (3)
Aspire.Azure.Storage.Queues (3)
Aspire.Cli.EndToEnd.Tests (4)
Aspire.Confluent.Kafka (4)
Aspire.Dashboard (8)
Aspire.Deployment.EndToEnd.Tests (3)
Aspire.Hosting (67)
Aspire.Hosting.Analyzers (2)
Aspire.Hosting.Azure (4)
Aspire.Hosting.Azure.AppConfiguration (1)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.AppService (2)
Aspire.Hosting.Azure.CognitiveServices (1)
Aspire.Hosting.Azure.ContainerRegistry (2)
Aspire.Hosting.Azure.CosmosDB (10)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.KeyVault (4)
Aspire.Hosting.Azure.Kubernetes (1)
Aspire.Hosting.Azure.Network (5)
Aspire.Hosting.Azure.Search (1)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Storage (1)
Aspire.Hosting.Azure.Tests (2)
Aspire.Hosting.Azure.WebPubSub (3)
Aspire.Hosting.DevTunnels (9)
Aspire.Hosting.Docker (2)
Aspire.Hosting.EntityFrameworkCore (1)
Aspire.Hosting.Foundry (12)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.JavaScript (8)
JavaScriptHostingExtensions.cs (8)
908throw new ArgumentException("apiTarget is required when apiPath is specified.", nameof(apiTarget));
913throw new ArgumentException("apiPath is required when apiTarget is specified.", nameof(apiPath));
920throw new ArgumentException("The apiPath must start with '/'.", nameof(apiPath));
927throw new ArgumentException("The apiPath must not be '/' — it would match all requests and make the static site unreachable.", nameof(apiPath));
2428_ => throw new ArgumentException("Cannot find a http or https endpoint for this resource.", nameof(resource))
2479throw new ArgumentException($"The apiPath must contain only URL-safe path characters (alphanumeric, '/', '-', '_'). Invalid character: '{c}'", nameof(apiPath));
2520throw new ArgumentException("The path must be a relative path.", nameof(path));
2532throw new ArgumentException("The path must not contain \"..\" segments.", nameof(path));
Aspire.Hosting.Kubernetes (27)
HelmChartOptions.cs (11)
78_ => throw new ArgumentException("Namespace must be a string or a parameter resource builder.", nameof(@namespace))
125_ => throw new ArgumentException("Release name must be a string or a parameter resource builder.", nameof(releaseName))
177_ => throw new ArgumentException("Chart version must be a string or a parameter resource builder.", nameof(version))
224_ => throw new ArgumentException("Chart name must be a string or a parameter resource builder.", nameof(name))
271_ => throw new ArgumentException("Chart description must be a string or a parameter resource builder.", nameof(description))
279throw new ArgumentException($"{target} '{value}' is invalid. It must be {maxLength} characters or fewer.", paramName);
284throw new ArgumentException($"{target} '{value}' is invalid. Use lowercase letters, numbers, and hyphens, and start and end with an alphanumeric character.", paramName);
304throw new ArgumentException($"Helm chart version '{version}' is invalid. Helm accepts versions such as '1.2.3', '1.2.3-beta.1+ef365', '1', '1.2', or 'v1.2.3'.", paramName);
312throw new ArgumentException($"Helm chart name '{name}' is invalid. It must be {HelmChartNameMaxLength} characters or fewer.", paramName);
317throw new ArgumentException($"Helm chart name '{name}' is invalid. Use alphanumeric characters, '-', '_', or '.'.", paramName);
325throw new ArgumentException($"Helm chart description is invalid. It must be {HelmChartDescriptionMaxLength} characters or fewer.", paramName);
KubernetesManifestResource.cs (8)
103throw new ArgumentException("Manifest field path must contain at least one segment.", nameof(path));
108throw new ArgumentException("Use the dedicated manifest API to configure apiVersion, kind, and metadata fields.", nameof(path));
125throw new ArgumentException($"Cannot set nested manifest field '{path}' because '{segment}' already has a scalar value.", nameof(path));
156_ => throw new ArgumentException($"Manifest field values must be JSON-compatible primitives, dictionaries, or arrays. Type '{value.GetType()}' is not supported.", nameof(value))
166throw new ArgumentException("Manifest field numeric values must be finite.", nameof(value));
181throw new ArgumentException("Manifest field numeric values must be finite.", nameof(value));
206throw new ArgumentException($"Whole-number manifest field values must be between {long.MinValue} and {long.MaxValue}.", nameof(value));
231_ => throw new ArgumentException($"Unsupported JSON value kind '{element.ValueKind}'.", nameof(element))
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.Python (1)
Aspire.Hosting.Radius (10)
Aspire.Hosting.Redis (1)
Aspire.Hosting.RemoteHost.Tests (2)
Aspire.Hosting.Testing (6)
DistributedApplicationHostingTestingExtensions.cs (4)
179throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, Properties.Resources.ResourceDoesNotExposeConnectionStringExceptionMessage, resourceName), nameof(resourceName));
259throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, Properties.Resources.ResourceNotFoundExceptionMessage, resourceName), nameof(resourceName));
270throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, Properties.Resources.ResourceHasNoAllocatedEndpointsExceptionMessage, resourceName), nameof(resourceName));
287throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, Properties.Resources.EndpointForResourceNotFoundExceptionMessage, endpointName, resourceName), nameof(endpointName));
Aspire.Hosting.Tests (4)
Aspire.Hosting.Yarp (7)
Aspire.Microsoft.Azure.Cosmos (3)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (3)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (3)
Aspire.Playground.Tests (1)
Aspire.StackExchange.Redis (1)
Aspire.TerminalHost (1)
Aspire.TestTools (1)
Aspire.TestUtilities (1)
Aspire.TypeSystem (2)
ConfigurationSchemaGenerator (1)
Crossgen2Tasks (1)
datacollector (3)
datacollector.arm64 (3)
dotnet (11)
dotnet-aot (5)
dotnet-dev-certs (2)
dotnet-format (1)
dotnet-getdocument (2)
dotnet-Microsoft.XmlSerializer.Generator (1)
dotnet-openapi (2)
dotnet-sql-cache (2)
dotnet-suggest (2)
dotnet-svcutil-lib (133)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (7)
62throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e");
99throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e");
500throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e");
710throw new ArgumentException(message, "typeName");
719throw new ArgumentException(message, "identifier");
833throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e");
1019throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e");
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (9)
1015throw new ArgumentException(string.Format(ResXml.XmlEmptyArrayType, CurrentTag()), "value");
1029throw new ArgumentException(ResXml.XmlInvalidArraySyntax, "value");
1037throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag()), "value");
1042throw new ArgumentException(ResXml.XmlMismatchedArrayBrackets, "value");
1059throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayLength, lengthString), "value");
1074throw new ArgumentException(ResXml.XmlMismatchedArrayBrackets, "value");
1076throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag()), "value");
1078throw new ArgumentException(ResXml.XmlInvalidArraySyntax, "value");
1128throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayLength, dimensions[i]), "value");
FrameworkFork\Microsoft.Xml\Xml\XmlEncoding.cs (5)
35throw new ArgumentException(string.Format(ResXml.Enc_InvalidByteInEncoding, new object[1] { -1 }), (string)null);
551throw new ArgumentException(string.Format(ResXml.Enc_InvalidByteInEncoding, new object[1] { i }), (string)null);
590throw new ArgumentException(string.Format(ResXml.Enc_InvalidByteInEncoding, new object[1] { i }), (string)null);
630throw new ArgumentException(string.Format(ResXml.Enc_InvalidByteInEncoding, new object[1] { i }), (string)null);
670throw new ArgumentException(string.Format(ResXml.Enc_InvalidByteInEncoding, new object[1] { i }), (string)null);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (19)
216throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlPrefixBoundToNamespace, "xml", xmlNamespace, ns), "ns"));
224throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlPrefixBoundToNamespace, "xmlns", xmlnsNamespace, ns), "ns"));
242throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlUndefinedPrefix, prefix), "prefix"));
249throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlEmptyNamespaceRequiresNullPrefix), "prefix"));
419throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidCommentChars), "text"));
478throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.InvalidLocalNameEmpty), "localName"));
493throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlUndefinedPrefix, prefix), "prefix"));
523throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.InvalidLocalNameEmpty), "localName"));
547throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlUndefinedPrefix, prefix), "prefix"));
780throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlNamespaceNotFound, namespaceUri), "namespaceUri"));
794throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.InvalidLocalNameEmpty), "localName"));
813throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.InvalidLocalNameEmpty), "localName"));
858throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlProcessingInstructionNotSupported), "name"));
940throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlOnlyWhitespace), "whitespace"));
1090throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlMissingLowSurrogate), "ch"));
1210throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlNestedArraysNotSupported), "value"));
1923throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlReservedPrefix), "prefix"));
1936throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlPrefixBoundToNamespace, prefix, nameSpace.Uri, uri), "prefix"));
1940throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlEmptyNamespaceRequiresNullPrefix), "prefix"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (2)
521new ArgumentException(string.Format(SRServiceModel.SFxParameterCountMismatch, "parts", parts.Length, "parameters", parameters.Length), "parameters"));
586new ArgumentException(string.Format(SRServiceModel.SFxParameterCountMismatch, "parts", parts.Length, "parameters", parameters.Length), "parameters"));
dotnet-user-jwts (2)
dotnet-user-secrets (2)
EventSourceGenerator (1)
GenerateDocumentationAndConfigFiles (31)
GetDocument.Insider (2)
ILCompiler.Compiler (3)
illink (3)
ILLink.RoslynAnalyzer (9)
libmscordaccore_universal (3)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.AspNetCore.Antiforgery (4)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.AsyncState (1)
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Abstractions (1)
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (5)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Components (7)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.Abstractions (5)
Microsoft.AspNetCore.Diagnostics.HealthChecks (2)
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (1)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Hosting.Abstractions (1)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Abstractions (10)
Microsoft.AspNetCore.Http.Connections (3)
Microsoft.AspNetCore.Http.Connections.Client (6)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Microsoft.AspNetCore.Mvc.Abstractions (6)
Microsoft.AspNetCore.Mvc.Core (25)
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.Razor (3)
Microsoft.AspNetCore.Mvc.RazorPages (8)
Microsoft.AspNetCore.Mvc.TagHelpers (5)
Microsoft.AspNetCore.Mvc.ViewFeatures (16)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.Owin (3)
Microsoft.AspNetCore.RateLimiting (3)
Microsoft.AspNetCore.Razor.Utilities.Shared (4)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.ResponseCompression (1)
Microsoft.AspNetCore.Routing (4)
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.Testing (1)
Microsoft.AspNetCore.WebUtilities (9)
Microsoft.Bcl.AsyncInterfaces (1)
Microsoft.Bcl.Numerics (1)
Microsoft.Build (14)
Microsoft.Build.Framework (10)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Tasks.Git (3)
Microsoft.Build.Utilities.Core (6)
Microsoft.CodeAnalysis (131)
Compilation\Compilation.cs (28)
113throw new ArgumentException(CodeAnalysisResources.InconsistentSyntaxTreeFeature, nameof(trees));
254throw new ArgumentException(CodeAnalysisResources.ReturnTypeCannotBeValuePointerbyRefOrOpen, nameof(globalsType));
259throw new ArgumentException(CodeAnalysisResources.ReturnTypeCannotBeVoidByRefOrOpen, nameof(returnType));
270throw new ArgumentException(CodeAnalysisResources.TypeMustBeSameAsHostObjectTypeOfPreviousSubmission, nameof(globalsType));
294throw new ArgumentException(CodeAnalysisResources.InvalidOutputKindForSubmission, nameof(options));
303throw new ArgumentException(CodeAnalysisResources.InvalidCompilationOptions, nameof(options));
375throw new ArgumentException($"{nameof(arity)} must be >= 0", nameof(arity));
705throw new ArgumentException(string.Format(CodeAnalysisResources.ReferenceOfTypeIsInvalid1, reference.GetType()),
865throw new ArgumentException(string.Format(CodeAnalysisResources.MetadataRefNotFoundToRemove1, r),
1330throw new ArgumentException(CodeAnalysisResources.TuplesNeedAtLeastTwoElements, nameof(elementNames));
1373throw new ArgumentException(CodeAnalysisResources.TupleElementNullableAnnotationCountMismatch, nameof(elementNullableAnnotations));
1388throw new ArgumentException(CodeAnalysisResources.TupleElementNameCountMismatch, nameof(elementNames));
1395throw new ArgumentException(CodeAnalysisResources.TupleElementNameEmpty, $"{nameof(elementNames)}[{i}]");
1416throw new ArgumentException(CodeAnalysisResources.TupleElementLocationCountMismatch, nameof(elementLocations));
1663throw new ArgumentException(string.Format(CodeAnalysisResources.IsSymbolAccessibleBadWithin, nameof(within)), nameof(within));
1679throw new ArgumentException(string.Format(CodeAnalysisResources.IsSymbolAccessibleWrongAssembly, parameterName), parameterName);
2853throw new ArgumentException(CodeAnalysisResources.StreamMustSupportWrite, nameof(peStream));
2860throw new ArgumentException(CodeAnalysisResources.PdbStreamUnexpectedWhenEmbedding, nameof(pdbStream));
2865throw new ArgumentException(CodeAnalysisResources.StreamMustSupportWrite, nameof(pdbStream));
2870throw new ArgumentException(CodeAnalysisResources.PdbStreamUnexpectedWhenEmittingMetadataOnly, nameof(pdbStream));
2876throw new ArgumentException(CodeAnalysisResources.MetadataPeStreamUnexpectedWhenEmittingMetadataOnly, nameof(metadataPEStream));
2881throw new ArgumentException(CodeAnalysisResources.IncludingPrivateMembersUnexpectedWhenEmittingToMetadataPeStream, nameof(metadataPEStream));
2893throw new ArgumentException(CodeAnalysisResources.EmbeddingPdbUnexpectedWhenEmittingMetadata, nameof(metadataPEStream));
2900throw new ArgumentException(CodeAnalysisResources.CannotTargetNetModuleWhenEmittingRefAssembly, nameof(metadataPEStream));
2904throw new ArgumentException(CodeAnalysisResources.CannotTargetNetModuleWhenEmittingRefAssembly, nameof(options.EmitMetadataOnly));
2912throw new ArgumentException(CodeAnalysisResources.StreamMustSupportReadAndSeek, nameof(win32Resources));
2918throw new ArgumentException(CodeAnalysisResources.StreamMustSupportRead, nameof(sourceLinkStream));
2926throw new ArgumentException(CodeAnalysisResources.EmbeddedTextsRequirePdb, nameof(embeddedTexts));
DiagnosticAnalyzer\DiagnosticAnalysisContextHelpers.cs (7)
63throw new ArgumentException(string.Format(CodeAnalysisResources.UnsupportedDiagnosticReported, diagnostic.Id), nameof(diagnostic));
71throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticIdReported, diagnostic.Id), nameof(diagnostic));
99throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticLocationReported, id, location.SourceTree.FilePath), "diagnostic");
105throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticSpanReported, id, location.SourceSpan, location.SourceTree.FilePath), "diagnostic");
126throw new ArgumentException(CodeAnalysisResources.ArgumentCannotBeEmpty, nameof(symbolKinds));
140throw new ArgumentException(CodeAnalysisResources.ArgumentCannotBeEmpty, nameof(syntaxKinds));
153throw new ArgumentException(CodeAnalysisResources.ArgumentCannotBeEmpty, nameof(operationKinds));
SourceGeneration\AdditionalSourcesCollection.cs (5)
72throw new ArgumentException(string.Format(CodeAnalysisResources.HintNameInvalidChar, hintName, c, i), nameof(hintName));
80throw new ArgumentException(string.Format(CodeAnalysisResources.HintNameInvalidSegment, hintName, match.Value, match.Index), nameof(hintName));
86throw new ArgumentException(string.Format(CodeAnalysisResources.HintNameUniquePerGenerator, hintName), nameof(hintName));
91throw new ArgumentException(string.Format(CodeAnalysisResources.SourceTextRequiresEncoding, hintName), nameof(source));
141throw new ArgumentException(string.Format(CodeAnalysisResources.HintNameUniquePerGenerator, source.HintName), "hintName");
Microsoft.CodeAnalysis.Analyzers (31)
Microsoft.CodeAnalysis.AnalyzerUtilities (29)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\HazardousUsageEvaluator.cs (1)
73throw new ArgumentException(
Microsoft.CodeAnalysis.CodeStyle (22)
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.CSharp (47)
Compilation\CSharpCompilation.cs (21)
629throw new ArgumentException(CodeAnalysisResources.InconsistentLanguageVersions, nameof(syntaxTrees));
957throw new ArgumentException(CSharpResources.TreeMustHaveARootNodeWith, $"{nameof(trees)}[{i}]");
962throw new ArgumentException(CSharpResources.SyntaxTreeAlreadyPresent, $"{nameof(trees)}[{i}]");
967throw new ArgumentException(CSharpResources.SubmissionCanOnlyInclude, $"{nameof(trees)}[{i}]");
979throw new ArgumentException(CSharpResources.SubmissionCanHaveAtMostOne, nameof(trees));
1030throw new ArgumentException(CSharpResources.SyntaxTreeFromLoadNoRemoveReplace, $"{nameof(trees)}[{i}]");
1033throw new ArgumentException(CSharpResources.SyntaxTreeNotFoundToRemove, $"{nameof(trees)}[{i}]");
1087throw new ArgumentException(CSharpResources.TreeMustHaveARootNodeWith, nameof(newTree));
1098throw new ArgumentException(CSharpResources.SyntaxTreeFromLoadNoRemoveReplace, nameof(oldTree));
1101throw new ArgumentException(CSharpResources.SyntaxTreeNotFoundToRemove, nameof(oldTree));
1106throw new ArgumentException(CSharpResources.SyntaxTreeAlreadyPresent, nameof(newTree));
2626throw new ArgumentException(CSharpResources.SyntaxTreeNotFound, nameof(syntaxTree));
4384throw new ArgumentException(CodeAnalysisResources.TupleUnderlyingTypeMustBeTupleCompatible, nameof(underlyingType));
4453throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps1, name), nameof(name));
4457throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps3, name), nameof(name));
4679throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps1, name), nameof(name));
4683throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps3, name), nameof(name));
4801throw new ArgumentException(CSharpResources.NoNoneSearchCriteria, nameof(filter));
4819throw new ArgumentException(CSharpResources.NoNoneSearchCriteria, nameof(filter));
4840throw new ArgumentException(CSharpResources.NoNoneSearchCriteria, nameof(filter));
4866throw new ArgumentException(CSharpResources.NoNoneSearchCriteria, nameof(filter));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.Extensions.Package (13)
Microsoft.CodeAnalysis.ExternalAccess.Extensions (2)
Microsoft.CodeAnalysis.Features (11)
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (3)
154throw new ArgumentException(string.Format(FeaturesResources.Reported_diagnostic_0_has_a_source_location_in_file_1_which_is_not_part_of_the_compilation_being_analyzed, id, location.SourceTree.FilePath), "diagnostic");
160throw new ArgumentException(string.Format(FeaturesResources.Reported_diagnostic_0_has_a_source_location_1_in_file_2_which_is_outside_of_the_given_file, id, location.SourceSpan, location.SourceTree.FilePath), "diagnostic");
183throw new ArgumentException(string.Format(FeaturesResources.Reported_diagnostic_0_has_a_source_location_1_in_file_2_which_is_outside_of_the_given_file, id, location.SourceSpan, filePath), "diagnostic");
Microsoft.CodeAnalysis.NetAnalyzers (10)
Microsoft.CodeAnalysis.Razor.Compiler (4)
Microsoft.CodeAnalysis.Rebuild (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (24)
Microsoft.CodeAnalysis.Scripting (11)
Microsoft.CodeAnalysis.Workspaces (71)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CSharp (2)
Microsoft.Data.Analysis (86)
DataFrame.BinaryOperations.cs (14)
20throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
59throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
98throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
137throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
176throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
214throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
251throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
288throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
362throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
395throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
428throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
461throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
494throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
527throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
DataFrame.cs (17)
339throw new ArgumentException(string.Format(Strings.ExceedsNumberOfRows, Rows.Count), nameof(numberOfRows));
371throw new ArgumentException(String.Format(Strings.InvalidColumnName, columnName), nameof(columnName));
484throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(values));
566throw new ArgumentException(string.Format(Strings.MismatchedValueType, column.DataType), column.Name);
575throw new ArgumentException(string.Format(Strings.ExceedsNumberOfColumns, Columns.Count), nameof(row));
631throw new ArgumentException(String.Format(Strings.InvalidColumnName, columnName), nameof(columnName));
641throw new ArgumentException(string.Format(Strings.MismatchedValueType, column.DataType), column.Name);
743throw new ArgumentException(Strings.ParameterMustNotBeNullOrWhitespace, nameof(variableName));
748throw new ArgumentException(Strings.ParameterMustNotBeNullOrWhitespace, nameof(valueName));
773throw new ArgumentException(Strings.MissingIdColumns, nameof(idColumns));
778throw new ArgumentException(Strings.MissingValueColumns, nameof(valueColumns));
783throw new ArgumentException(Strings.DuplicateColumnsInIdAndValueLists, nameof(valueColumns));
793throw new ArgumentException(string.Format(Strings.VariableNameAlreadyExists, variableName), nameof(variableName));
798throw new ArgumentException(string.Format(Strings.ValueNameAlreadyExists, valueName), nameof(valueName));
803throw new ArgumentException(string.Format(Strings.VariableNameAndValueNameMustBeDifferent, nameof(variableName), nameof(valueName)), nameof(valueName));
810throw new ArgumentException(string.Format(Strings.InvalidColumnName, columnName), nameof(idColumns));
818throw new ArgumentException(string.Format(Strings.InvalidColumnName, columnName), nameof(valueColumns));
DataFrameColumnCollection.cs (6)
82throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(column));
87throw new ArgumentException(string.Format(Strings.DuplicateColumnName, column.Name), nameof(column));
108throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(column));
113throw new ArgumentException(string.Format(Strings.DuplicateColumnName, column.Name), nameof(column));
188throw new ArgumentException(String.Format(Strings.InvalidColumnName, columnName), nameof(columnName));
223throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(T)), nameof(T));
DataFrameColumns\StringDataFrameColumn.cs (5)
60throw new ArgumentException(Strings.CannotResizeDown, nameof(length));
153throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(string)), nameof(value));
307throw new ArgumentException(String.Format(Strings.MultipleMismatchedValueType, typeof(long), typeof(int), typeof(bool)), nameof(mapIndices));
329throw new ArgumentException(Strings.MapIndicesExceedsColumnLength, nameof(boolColumn));
467throw new ArgumentException(String.Format(Strings.MismatchedValueType, typeof(string)), nameof(value));
PrimitiveDataFrameColumn.cs (15)
136throw new ArgumentException(Strings.SpansMultipleBuffers, nameof(numberOfRows));
245throw new ArgumentException(string.Format(Strings.MismatchedValueType, DataType), nameof(value));
430throw new ArgumentException(String.Format(Strings.MultipleMismatchedValueType, typeof(long), typeof(int), typeof(bool)), nameof(mapIndices));
463throw new ArgumentException(Strings.MapIndicesExceedsColumnLength, nameof(boolColumn));
479throw new ArgumentException(String.Format(Strings.MismatchedValueType, Strings.NumericColumnType), nameof(mapIndices));
720throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(U));
750throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(U));
957throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(column));
987throw new ArgumentException(string.Format(Strings.MismatchedColumnValueType, typeof(T)), nameof(column));
1022throw new ArgumentException(string.Format(Strings.MismatchedColumnValueType, typeof(T)), nameof(column));
1065throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value));
1100throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value));
1142throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value));
1176throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value));
1284throw new ArgumentException(Strings.MismatchedColumnLengths, nameof(column));
Microsoft.Deployment.DotNet.Releases (4)
Microsoft.Diagnostics.DataContractReader.Contracts (12)
Microsoft.Diagnostics.DataContractReader.Legacy (57)
Dbi\DacDbiImpl.cs (33)
446throw new ArgumentException("Module pointer must be non-zero.", nameof(vmModule));
484throw new ArgumentException("Module pointer must be non-zero.", nameof(vmModule));
535throw new ArgumentException("Module pointer must be non-zero.", nameof(vmModule));
576throw new ArgumentException("Module pointer must be non-zero.", nameof(vmModule));
1215throw new ArgumentException("Invalid debug state value.", nameof(debugState));
1857throw new ArgumentException("Invalid stack walk handle", nameof(ppSFIHandle));
1889throw new ArgumentException("Invalid stack walk handle", nameof(pSFIHandle));
1946throw new ArgumentException("Invalid stack walk handle", nameof(pSFIHandle));
1980throw new ArgumentException("Invalid stack walk handle", nameof(pSFIHandle));
2068throw new ArgumentException("Invalid stack walk handle", nameof(pSFIHandle));
3740throw new ArgumentException("MethodDesc cannot be null", nameof(vmMethodDesc));
4965throw new ArgumentException("Invalid heap walk handle", nameof(handle));
5001throw new ArgumentException("Invalid heap walk handle", nameof(handle));
5276throw new ArgumentException("Handle does not reference a valid RefWalk instance.", nameof(handle));
5305throw new ArgumentException("Handle is invalid.", nameof(handle));
5308throw new ArgumentException("Handle does not reference a valid RefWalk instance.", nameof(handle));
5465throw new ArgumentException("TypeDescs are not supported", nameof(id));
5785throw new ArgumentException("Output pointer cannot be null.", nameof(pHasReadWriteMetadata));
5815throw new ArgumentException("Module pointer cannot be null.", nameof(vmModule));
5818throw new ArgumentException("Output pointer cannot be null.", nameof(pOptimizationsDisabled));
5821throw new ArgumentException("methodTk must be a MethodDef token.", nameof(methodTk));
5871throw new ArgumentException("Output pointer cannot be null.", nameof(pVmILCodeVersionNode));
5883throw new ArgumentException("methodTk must be a MethodDef token.", nameof(methodTk));
5938throw new ArgumentException("methodTk must be a MethodDef token.", nameof(methodTk));
6001throw new ArgumentException("Output pointer cannot be null.", nameof(pVmNativeCodeVersionNode));
6040throw new ArgumentException("Output pointer cannot be null.", nameof(pVmILCodeVersionNode));
6078throw new ArgumentException("Output pointer cannot be null.", nameof(pData));
6202throw new ArgumentException("Unable to find MethodDesc for the delegate's target method.", nameof(delegateObject));
6287throw new ArgumentException("Module pointer must not be zero.", nameof(pModule));
6358throw new ArgumentException("Module pointer must not be zero.", nameof(vmModule));
6444throw new ArgumentException("vmMethod must not be zero.", nameof(vmMethod));
6527throw new ArgumentException("vmMethod must not be zero.", nameof(vmMethod));
6529throw new ArgumentException("pIndex must not be null.", nameof(pIndex));
Microsoft.Diagnostics.NETCore.Client (2)
Microsoft.DiaSymReader (2)
Microsoft.DotNet.ApiCompat.Task (1)
Microsoft.DotNet.ApiSymbolExtensions (1)
Microsoft.DotNet.Build.Tasks.FileCatalog (4)
Microsoft.DotNet.Build.Tasks.Installers (5)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.Cli.Utils (3)
Microsoft.DotNet.GenFacades (1)
Microsoft.DotNet.TemplateLocator (12)
Microsoft.DotNet.XliffTasks (3)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Evaluation (1)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Evaluation.NLP (1)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.AmbientMetadata.Application (1)
Microsoft.Extensions.AmbientMetadata.Build (1)
Microsoft.Extensions.AsyncState (1)
Microsoft.Extensions.Caching.Abstractions (1)
Microsoft.Extensions.Caching.Hybrid (3)
Microsoft.Extensions.Compliance.Abstractions (2)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Compliance.Testing (1)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (2)
Microsoft.Extensions.Configuration.CommandLine (2)
Microsoft.Extensions.Configuration.Ini (1)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.Extensions.Configuration.UserSecrets (2)
Microsoft.Extensions.Configuration.Xml (1)
Microsoft.Extensions.DataIngestion (1)
Microsoft.Extensions.DataIngestion.Abstractions (1)
Microsoft.Extensions.DataIngestion.Markdig (1)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
Microsoft.Extensions.DependencyModel (14)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
Microsoft.Extensions.Diagnostics.HealthChecks (4)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (1)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes (1)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Hosting.Testing (1)
Microsoft.Extensions.Http (2)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Identity.Core (3)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
Microsoft.Extensions.Options.Contextual (1)
Microsoft.Extensions.Primitives (1)
Microsoft.Extensions.Resilience (1)
Microsoft.Extensions.ServiceDiscovery (3)
Microsoft.Extensions.ServiceDiscovery.Abstractions (2)
Microsoft.Extensions.ServiceDiscovery.Dns (3)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Telemetry.Abstractions (1)
Microsoft.Extensions.TimeProvider.Testing (1)
Microsoft.Extensions.VectorData.Abstractions (1)
Microsoft.Extensions.VectorData.ConformanceTests (2)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (4)
Microsoft.JSInterop (1)
Microsoft.Maui (18)
Microsoft.Maui.Controls (30)
HybridWebView\HybridWebView.cs (8)
92 throw new ArgumentException($"The method name cannot be null or empty.", nameof(methodName));
96 throw new ArgumentException($"The parameter values were provided, but the parameter JSON type infos were not.", nameof(paramJsonTypeInfos));
100 throw new ArgumentException($"The parameter JSON type infos were provided, but the parameter values were not.", nameof(paramValues));
104 throw new ArgumentException($"The number of parameter values does not match the number of parameter JSON type infos.", nameof(paramValues));
121 throw new ArgumentException($"The method name cannot be null or empty.", nameof(methodName));
125 throw new ArgumentException($"The parameter values were provided, but the parameter JSON type infos were not.", nameof(paramJsonTypeInfos));
129 throw new ArgumentException($"The parameter JSON type infos were provided, but the parameter values were not.", nameof(paramValues));
133 throw new ArgumentException($"The number of parameter values does not match the number of parameter JSON type infos.", nameof(paramValues));
Microsoft.Maui.Controls.BindingSourceGen (1)
Microsoft.Maui.Controls.Xaml (1)
Microsoft.Maui.Essentials (2)
Microsoft.ML.AutoML (12)
Utils\UserInputValidationUtil.cs (12)
57throw new ArgumentException($"{nameof(numberOfCVFolds)} must be at least 2", nameof(numberOfCVFolds));
65throw new ArgumentException($"If provided, {nameof(samplingKeyColumnName)} must be the same as {nameof(groupIdColumnName)} for Ranking Experiments", samplingKeyColumnName);
78throw new ArgumentException("Training data has 0 rows", nameof(trainData));
85throw new ArgumentException($"{DefaultColumnNames.Features} column must be of data type {NumberDataViewType.Single}", nameof(trainData));
97throw new ArgumentException($"Only supported feature column types are " +
144throw new ArgumentException($"Duplicate column name {duplicateColName} is present in two or more distinct properties of provided column information", nameof(columnInformation));
175throw new ArgumentException($"File '{path}' does not exist", nameof(path));
180throw new ArgumentException($"File at path '{path}' cannot be empty", nameof(path));
193throw new ArgumentException("Validation data has 0 rows", nameof(validationData));
200throw new ArgumentException($"{schemaMismatchError} Train data has '{trainData.Schema.Count}' columns," +
217throw new ArgumentException($"{schemaMismatchError} Column '{trainCol.Name}' exists in train data, but not in validation data.", nameof(validationData));
222throw new ArgumentException($"{schemaMismatchError} Column '{trainCol.Name}' is of type {trainCol.Type} in train data, and type " +
Microsoft.ML.AutoML.Tests (2)
Microsoft.ML.CodeGenerator (1)
Microsoft.ML.Core (2)
Microsoft.ML.DataView (4)
Microsoft.ML.GenAI.Core (3)
Microsoft.ML.GenAI.Phi (1)
Microsoft.ML.ImageAnalytics (8)
MLImage.cs (8)
46throw new ArgumentException($"Invalid input stream contents", nameof(imageStream));
67throw new ArgumentException($"Invalid path", nameof(imagePath));
85throw new ArgumentException($"Unsupported pixel format", nameof(pixelFormat));
90throw new ArgumentException($"Invalid width value.", nameof(width));
95throw new ArgumentException($"Invalid height value.", nameof(height));
240throw new ArgumentException($"Path has invalid image file extension.", nameof(imagePath));
246throw new ArgumentException($"Saving image with the format '{ext}' is not supported. Try save it with `Jpeg`, `Png`, or `Webp` format.", nameof(imagePath));
301_ => throw new ArgumentException($"Invalid resize mode value.", nameof(mode))
Microsoft.ML.TestFramework (1)
Microsoft.ML.TestFrameworkCommon (4)
Microsoft.ML.Tokenizers (7)
Microsoft.ML.Transforms (1)
Microsoft.NET.Build.Containers (4)
Microsoft.NET.Build.Extensions.Tasks (1)
Microsoft.NET.Build.Tasks (12)
Microsoft.NET.HostModel (3)
Microsoft.Net.Http.Headers (6)
Microsoft.NET.Sdk.WorkloadManifestReader (10)
Microsoft.Private.Windows.Core (13)
Microsoft.SourceLink.Common (1)
Microsoft.TemplateEngine.Abstractions (7)
Microsoft.TemplateEngine.Cli (13)
Microsoft.TemplateEngine.Core (2)
Microsoft.TemplateEngine.Edge (44)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (29)
Microsoft.TemplateEngine.Utils (1)
Microsoft.TemplateSearch.Common (16)
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (11)
25throw new ArgumentException($"'{nameof(templateInfo.Identity)}' cannot be null or whitespace.", nameof(templateInfo));
30throw new ArgumentException($"'{nameof(templateInfo.Name)}' cannot be null or whitespace.", nameof(templateInfo));
35throw new ArgumentException($"'{nameof(templateInfo.ShortNameList)}' should have at least one entry", nameof(templateInfo));
58throw new ArgumentException($"'{nameof(identity)}' cannot be null or whitespace.", nameof(identity));
63throw new ArgumentException($"'{nameof(name)}' cannot be null or whitespace.", nameof(name));
68throw new ArgumentException($"'{nameof(shortNameList)}' should have at least one entry", nameof(shortNameList));
151?? throw new ArgumentException($"{nameof(entry)} doesn't have {nameof(Identity)} property.", nameof(entry));
153?? throw new ArgumentException($"{nameof(entry)} doesn't have {nameof(Name)} property.", nameof(entry));
157?? throw new ArgumentException($"{nameof(entry)} doesn't have {nameof(ShortNameList)} property.", nameof(entry));
326throw new ArgumentException($"{nameof(Name)} property should not be null or whitespace", nameof(parameter));
355throw new ArgumentException($"{nameof(Name)} property should not be null or whitespace", nameof(jObject));
Microsoft.TestPlatform.CoreUtilities (7)
Microsoft.TestPlatform.CrossPlatEngine (1)
Microsoft.TestPlatform.Extensions.BlameDataCollector (3)
Microsoft.TestPlatform.PlatformAbstractions (1)
Microsoft.VisualStudio.TestPlatform.Common (5)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
Microsoft.VisualStudio.TestPlatform.ObjectModel (3)
Microsoft.Web.Xdt.Extensions (3)
Microsoft.Win32.Registry (10)
Mono.Cecil (1)
NuGet.Build.Tasks (5)
NuGet.CommandLine.XPlat (2)
NuGet.Commands (10)
NuGet.Common (19)
NuGet.Configuration (48)
NuGet.Frameworks (3)
NuGet.PackageManagement (19)
NuGet.Packaging (54)
NuGet.ProjectModel (2)
NuGet.Protocol (107)
NuGet.Versioning (4)
PresentationCore (259)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (18)
420throw new ArgumentException(SR.InvalidSizeSpecified, nameof(cbSize));
430throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Custom Attribute tag embedded in ISF stream does not match guid table"), nameof(tag));
437throw new ArgumentException(SR.InvalidSizeSpecified, nameof(cbSize));
457throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected"), nameof(cbSize));
478throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected"), nameof(cbSize));
780throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(System.Windows.Media.Color)), nameof(value));
788throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(int)), nameof(value));
796throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(DrawingFlags)), nameof(value));
807throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(StylusTip), typeof(int)), nameof(value));
811throw new ArgumentException(SR.Format(SR.InvalidValueOfType, value, typeof(StylusTip)), nameof(value));
822throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(String), typeof(Matrix)), nameof(value));
829throw new ArgumentException(SR.MatrixNotInvertible, nameof(value));
833throw new ArgumentException(SR.InvalidMatrixContainsNaN, nameof(value));
837throw new ArgumentException(SR.InvalidMatrixContainsInfinity, nameof(value));
845throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(bool)), nameof(value));
852throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(double)), nameof(value));
876throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte)), nameof(value));
889throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte[])), nameof(value));
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (42)
208throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), nameof(isfStream));
222throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected"), nameof(isfStream));
227throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), nameof(isfStream));
385throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), nameof(inputStream));
741throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Global Custom Attribute tag embedded in ISF stream does not match guid table"), "inkdata");
751throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "inkdata");
798throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "inkdata");
829throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
834throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
849throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
859throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
891throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
904throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
914throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
931throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
940throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
963throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
993throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
998throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1006throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1016throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1048throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1057throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1065throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1097throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1105throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1133throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1171throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1192throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1262throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1297throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1331throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1337throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1342throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1348throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1353throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1359throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1364throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1370throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),nameof(strm));
1587throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Button guid tag embedded in ISF stream does not match guid table"),nameof(strd));
1603throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF with NoX or NoY specified"), nameof(strd));
1627throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Packet Description Property tag embedded in ISF stream does not match guid table"), nameof(strd));
System\Windows\Generated\ContentElement.cs (4)
71throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp));
77throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), nameof(clock));
136throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp));
142throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), nameof(animation));
System\Windows\Generated\UIElement.cs (4)
71throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp));
77throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), nameof(clock));
136throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp));
142throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), nameof(animation));
System\Windows\Ink\StrokeCollection.cs (13)
47throw new ArgumentException(SR.StrokeIsDuplicated, nameof(strokes));
60throw new ArgumentException(SR.Image_StreamRead, nameof(stream));
66throw new ArgumentException(SR.Invalid_isfData_Length, nameof(stream));
84throw new ArgumentException(SR.Image_StreamWrite, nameof(stream));
187throw new ArgumentException(SR.InvalidGuid, nameof(propertyDataId));
225throw new ArgumentException(SR.MatrixNotInvertible, nameof(transformMatrix));
309throw new ArgumentException(SR.StrokeIsDuplicated, nameof(stroke));
327throw new ArgumentException(SR.StrokeIsDuplicated, nameof(stroke));
383ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, nameof(strokes));
427throw new ArgumentException(SR.StrokeIsDuplicated, nameof(strokes));
475ArgumentException ae = new ArgumentException(SR.EmptyScToReplace, nameof(strokesToReplace));
488ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, nameof(strokesToReplace));
504throw new ArgumentException(SR.StrokeIsDuplicated, nameof(strokesToReplaceWith));
System\Windows\Media\Animation\Generated\Animatable.cs (4)
70throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp));
76throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), nameof(clock));
135throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp));
141throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), nameof(animation));
System\Windows\Media\GlyphRun.cs (12)
384throw new ArgumentException(SR.ClusterMapEntriesShouldNotDecrease, nameof(clusterMap));
387throw new ArgumentException(SR.ClusterMapEntryShouldPointWithinGlyphIndices, nameof(clusterMap));
393throw new ArgumentException(SR.ClusterMapFirstEntryMustBeZero, nameof(clusterMap));
398throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, characters.Count), nameof(clusterMap));
404throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, GlyphCount), nameof(clusterMap));
411throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, CodepointCount + 1), nameof(caretStops));
433throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, nameof(glyphIndices));
437throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, MaxGlyphCount), nameof(glyphIndices));
443throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), nameof(advanceWidths));
446throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), nameof(glyphOffsets));
1084throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, nameof(value));
1114throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, nameof(value));
System\Windows\Media3D\Generated\Visual3D.cs (4)
70throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp));
76throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), nameof(clock));
135throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp));
141throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), nameof(animation));
PresentationFramework (216)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (8)
99throw new ArgumentException(SR.Format(SR.SelectionDoesNotResolveToAPage, "start"), nameof(selection));
106throw new ArgumentException(SR.Format(SR.SelectionDoesNotResolveToAPage, "end"), nameof(selection));
193throw new ArgumentException(SR.StartNodeMustBeFixedPageProxy, nameof(startNode));
281throw new ArgumentException(SR.StartNodeMustBeDocumentPageViewOrFixedPage, nameof(startNode));
449throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}");
455throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}");
475throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}");
493throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), nameof(locatorPart));
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (9)
69throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(),
114throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType1, value.GetType(),
152throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(NamedElement)), nameof(value));
201throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(ListItemStructure)), nameof(value));
243throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(),
296throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowGroupStructure)), nameof(value));
338throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowStructure)), nameof(value));
381throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableCellStructure)), nameof(value));
425throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(),
System\Windows\Documents\TextElementCollection.cs (5)
321throw new ArgumentException(SR.TextElementCollection_NoEnumerator, nameof(range));
335throw new ArgumentException(SR.Format(SR.TextElementCollection_ItemHasUnexpectedType, "range", typeof(TextElementType).Name, typeof(TextElementType).Name), "value");
398throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), nameof(value));
453throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), nameof(value));
564throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), nameof(value));
System\Windows\Documents\TextRangeBase.cs (6)
65throw new ArgumentException(SR.NotInAssociatedTree, nameof(textPointer));
1538throw new ArgumentException(SR.Format(SR.TextRange_UnsupportedDataFormat, dataFormat), nameof(dataFormat));
1572throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), nameof(stream));
1584throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), nameof(stream));
1589throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), nameof(stream));
1596throw new ArgumentException(SR.Format(SR.TextRange_UnsupportedDataFormat, dataFormat), nameof(dataFormat));
System\Windows\Standard\Verify.cs (16)
66throw new ArgumentException(errorMessage, name);
90throw new ArgumentException(errorMessage, name);
103throw new ArgumentException("The parameter must not be the default value.", name);
129throw new ArgumentException("The parameter must be null.", name);
161throw new ArgumentException("", name);
176throw new ArgumentException(message, name);
188throw new ArgumentException(message, parameterName);
193throw new ArgumentException(message, parameterName);
205throw new ArgumentException(message, parameterName);
210throw new ArgumentException(message, parameterName);
220throw new ArgumentException("The URI must be absolute.", parameterName);
235throw new ArgumentException(string.Create(CultureInfo.InvariantCulture, $"The integer value must be bounded with [{lowerBoundInclusive}, {upperBoundExclusive})"), parameterName);
244throw new ArgumentException(message, parameter);
257throw new ArgumentException("The type of this parameter does not support a required interface", parameterName);
267throw new ArgumentException($"No file exists at \"{filePath}\"", parameterName);
290throw new ArgumentException($"The parameter must implement interface {interfaceType}.", parameterName);
PresentationUI (2)
ReachFramework (5)
Roslyn.Diagnostics.Analyzers (31)
Roslyn.Diagnostics.CSharp.Analyzers (2)
rzc (5)
Shared (3)
Stress.ApiService (1)
System.CodeDom (23)
Microsoft\CSharp\CSharpCodeGenerator.cs (5)
611throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
748throw new ArgumentException(SR.Format(SR.InvalidPrimitiveType, e.Value.GetType()), nameof(e));
912throw new ArgumentException(SR.Format(SR.Argument_NullComment, nameof(e)), nameof(e));
1232throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
2681throw new ArgumentException(SR.Format(SR.InvalidIdentifier, value), nameof(value));
System\CodeDom\Compiler\CodeGenerator.cs (5)
608throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
938throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
1426throw new ArgumentException(SR.Format(SR.InvalidPrimitiveType, e.Value.GetType()), nameof(e));
1471throw new ArgumentException(SR.Format(SR.Argument_NullComment, nameof(e)), nameof(e));
1549throw new ArgumentException(SR.Format(SR.InvalidIdentifier, value), nameof(value));
System\CodeDom\Compiler\CodeValidator.cs (10)
62throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
97throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
458throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
644throw new ArgumentException(SR.Format(SR.ArityDoesntMatch, baseType, e.TypeArguments.Count), nameof(e));
653throw new ArgumentException(message, nameof(e));
662throw new ArgumentException(message, nameof(e));
771throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
941throw new ArgumentException(SR.Format(SR.InvalidElementType, e.GetType().FullName), nameof(e));
948throw new ArgumentException(SR.Format(SR.InvalidPathCharsInChecksum, e.FileName), nameof(e));
954throw new ArgumentException(SR.Format(SR.InvalidRegion, e.RegionText), nameof(e));
System.Collections (63)
System\Collections\Generic\OrderedDictionary.cs (21)
294throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value));
325throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key));
333throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value));
1243throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key));
1251throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value));
1286throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
1291throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
1311throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
1321throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
1331throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value));
1360throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value));
1511throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall, nameof(array));
1529throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
1534throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
1554throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
1564throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
1700throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall, nameof(array));
1838throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
1843throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
1863throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
1873throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System\Collections\Generic\SortedDictionary.cs (10)
328throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value));
333throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key));
357throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value));
362throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key));
554throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
559throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
582throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
715throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
720throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
743throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System\Collections\Generic\SortedList.cs (12)
185throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, key), nameof(key));
273throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key));
276throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value));
458throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
463throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
488throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
500throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
627throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value));
1055throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
1064throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
1169throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
1178throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System.Collections.Concurrent (10)
System.Collections.Immutable (15)
System.Collections.NonGeneric (5)
System.Collections.Specialized (3)
System.CommandLine (2)
System.ComponentModel.Annotations (6)
System.ComponentModel.Composition (27)
System\ComponentModel\Composition\ExceptionBuilder.cs (9)
25return new ArgumentException(message, parameterName);
41throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(memberName)), nameof(memberName));
61return new ArgumentException(message, parameterName);
70throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(parameterName)), nameof(parameterName));
75return new ArgumentException(message, parameterName);
94throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(parameterName)), nameof(parameterName));
99return new ArgumentException(SR.Format(SR.ReflectionModel_InvalidPartDefinition, partDefinitionType), parameterName);
108throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(typeName)), nameof(typeName));
113return new ArgumentException(message, typeName);
System.ComponentModel.Composition.Registration (2)
System.ComponentModel.Primitives (1)
System.ComponentModel.TypeConverter (11)
System.Composition.Convention (11)
System.Composition.Hosting (2)
System.Configuration.ConfigurationManager (17)
System.Data.Common (4)
System.Data.Odbc (1)
System.Data.OleDb (1)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.EventLog (1)
System.Diagnostics.PerformanceCounter (25)
System.Diagnostics.Process (7)
System.Diagnostics.TraceSource (3)
System.DirectoryServices (218)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClassCollection.cs (8)
72throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, value), nameof(value));
92throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, schemaClass), nameof(schemaClass));
104throw new ArgumentException(null, nameof(schemaClasses));
122throw new ArgumentException(null, nameof(schemaClasses));
141throw new ArgumentException(null, nameof(schemaClasses));
170throw new ArgumentException(SR.Format(SR.NotFoundInCollection, schemaClass), nameof(schemaClass));
188throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, schemaClass), nameof(schemaClass));
329throw new ArgumentException(null, nameof(value));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaPropertyCollection.cs (8)
73throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, value), nameof(value));
93throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, schemaProperty), nameof(schemaProperty));
105throw new ArgumentException(null, nameof(properties));
123throw new ArgumentException(null, nameof(properties));
143throw new ArgumentException(null, nameof(properties));
173throw new ArgumentException(SR.Format(SR.NotFoundInCollection, schemaProperty), nameof(schemaProperty));
191throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, schemaProperty), nameof(schemaProperty));
345throw new ArgumentException(null, nameof(value));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnetCollection.cs (6)
43throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, subnet), nameof(value));
58throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, subnet), nameof(subnet));
70throw new ArgumentException(null, nameof(subnets));
150throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, subnet), nameof(subnet));
176throw new ArgumentException(SR.Format(SR.NotFoundInCollection, subnet), nameof(subnet));
271throw new ArgumentException(null, nameof(value));
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (14)
122throw new ArgumentException(SR.TargetShouldBeADAMServer, nameof(context));
172throw new ArgumentException(SR.TargetShouldBeConfigSet, nameof(context));
179throw new ArgumentException(SR.EmptyStringParameter, nameof(partitionName));
198throw new ArgumentException(SR.TargetShouldBeConfigSet, nameof(context));
205throw new ArgumentException(SR.EmptyStringParameter, nameof(partitionName));
320throw new ArgumentException(SR.EmptyStringParameter, nameof(partition));
354throw new ArgumentException(SR.EmptyStringParameter, nameof(partition));
393throw new ArgumentException(SR.EmptyStringParameter, nameof(objectPath));
410throw new ArgumentException(SR.EmptyStringParameter, nameof(partition));
416throw new ArgumentException(SR.EmptyStringParameter, nameof(sourceServer));
432throw new ArgumentException(SR.EmptyStringParameter, nameof(partition));
448throw new ArgumentException(SR.EmptyStringParameter, nameof(partition));
632throw new ArgumentException(SR.InvalidDNFormat, nameof(value));
639throw new ArgumentException(SR.ServerNotAReplica, nameof(value));
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (11)
115throw new ArgumentException(SR.TargetShouldBeAppNCDnsName, nameof(context));
167throw new ArgumentException(SR.ContextNotAssociatedWithDomain, nameof(context));
175throw new ArgumentException(SR.NotADOrADAM, nameof(context));
184throw new ArgumentException(SR.EmptyStringParameter, nameof(distinguishedName));
187throw new ArgumentException(SR.InvalidDNFormat, nameof(distinguishedName));
857throw new ArgumentException(SR.TargetShouldBeServer, nameof(context));
865throw new ArgumentException(SR.EmptyStringParameter, nameof(distinguishedName));
900throw new ArgumentException(SR.EmptyStringParameter, nameof(objectClass));
1149throw new ArgumentException(SR.EmptyStringParameter, nameof(siteName));
1191throw new ArgumentException(SR.EmptyStringParameter, nameof(siteName));
1214throw new ArgumentException(SR.EmptyStringParameter, nameof(siteName));
System\DirectoryServices\ActiveDirectory\DirectoryServerCollection.cs (14)
59throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, server), nameof(value));
74throw new ArgumentException(SR.ServerShouldBeDC, nameof(server));
80throw new ArgumentException(SR.ServerShouldBeW2K3, nameof(server));
90throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, server), nameof(server));
105throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, server), nameof(server));
118throw new ArgumentException(null, nameof(servers));
175throw new ArgumentException(SR.ServerShouldBeDC, nameof(server));
181throw new ArgumentException(SR.ServerShouldBeW2K3, nameof(server));
191throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, server), nameof(server));
201throw new ArgumentException(SR.NotWithinSite, nameof(server));
228throw new ArgumentException(SR.Format(SR.NotFoundInCollection, server), nameof(server));
383throw new ArgumentException(SR.ServerShouldBeAI, nameof(value));
389throw new ArgumentException(SR.ServerShouldBeDC, nameof(value));
395throw new ArgumentException(null, nameof(value));
System\DirectoryServices\ActiveDirectory\Domain.cs (25)
71throw new ArgumentException(SR.TargetShouldBeServerORDomain, nameof(context));
156throw new ArgumentException(SR.InvalidMode, nameof(domainMode));
164throw new ArgumentException(SR.InvalidMode, nameof(domainMode));
198throw new ArgumentException(SR.InvalidMode, nameof(domainMode));
211throw new ArgumentException(SR.InvalidMode, nameof(domainMode));
237throw new ArgumentException(SR.NoW2K3DCs, nameof(domainMode));
310throw new ArgumentException(SR.InvalidMode, nameof(domainMode));
325throw new ArgumentException(SR.InvalidMode, nameof(domainMode));
340throw new ArgumentException(SR.InvalidMode, nameof(domainMode));
365throw new ArgumentException(SR.InvalidMode, nameof(domainMode));
392throw new ArgumentException(SR.NoW2K3DCs, nameof(domainMode));
476throw new ArgumentException(SR.EmptyStringParameter, nameof(siteName));
505throw new ArgumentException(SR.EmptyStringParameter, nameof(targetDomainName));
529throw new ArgumentException(SR.EmptyStringParameter, nameof(targetDomainName));
542throw new ArgumentException(SR.EmptyStringParameter, nameof(targetDomainName));
555throw new ArgumentException(SR.EmptyStringParameter, nameof(targetDomainName));
568throw new ArgumentException(SR.EmptyStringParameter, nameof(targetDomainName));
581throw new ArgumentException(SR.EmptyStringParameter, nameof(targetDomainName));
609throw new ArgumentException(SR.EmptyStringParameter, nameof(targetDomainName));
659throw new ArgumentException(SR.EmptyStringParameter, nameof(targetDomainName));
668throw new ArgumentException(SR.EmptyStringParameter, nameof(trustPassword));
711throw new ArgumentException(SR.EmptyStringParameter, nameof(targetDomainName));
717throw new ArgumentException(SR.EmptyStringParameter, nameof(newTrustPassword));
730throw new ArgumentException(SR.EmptyStringParameter, nameof(targetDomainName));
739throw new ArgumentException(SR.EmptyStringParameter, nameof(newTrustPassword));
System\DirectoryServices\ActiveDirectory\DomainController.cs (18)
133throw new ArgumentException(SR.TargetShouldBeDC, nameof(context));
180throw new ArgumentException(SR.TargetShouldBeDomain, nameof(context));
192throw new ArgumentException(SR.TargetShouldBeDomain, nameof(context));
206throw new ArgumentException(SR.TargetShouldBeDomain, nameof(context));
218throw new ArgumentException(SR.TargetShouldBeDomain, nameof(context));
232throw new ArgumentException(SR.TargetShouldBeDomain, nameof(context));
247throw new ArgumentException(SR.TargetShouldBeDomain, nameof(context));
444throw new ArgumentException(SR.EmptyStringParameter, nameof(partition));
478throw new ArgumentException(SR.EmptyStringParameter, nameof(partition));
517throw new ArgumentException(SR.EmptyStringParameter, nameof(objectPath));
534throw new ArgumentException(SR.EmptyStringParameter, nameof(partition));
540throw new ArgumentException(SR.EmptyStringParameter, nameof(sourceServer));
556throw new ArgumentException(SR.EmptyStringParameter, nameof(partition));
572throw new ArgumentException(SR.EmptyStringParameter, nameof(partition));
965throw new ArgumentException(SR.EmptyStringParameter, nameof(siteName));
971throw new ArgumentException(SR.InvalidFlags, nameof(flag));
986throw new ArgumentException(SR.InvalidFlags, nameof(flag));
1009throw new ArgumentException(SR.EmptyStringParameter, nameof(siteName));
System\DirectoryServices\ActiveDirectory\Forest.cs (19)
98throw new ArgumentException(SR.TargetShouldBeServerORForest, nameof(context));
171throw new ArgumentException(SR.InvalidMode, nameof(forestMode));
177throw new ArgumentException(SR.InvalidMode, nameof(forestMode));
194throw new ArgumentException(SR.NoW2K3DCsInForest, nameof(forestMode));
223throw new ArgumentException(SR.InvalidMode, nameof(forestMode));
297throw new ArgumentException(SR.EmptyStringParameter, nameof(siteName));
318throw new ArgumentException(SR.EmptyStringParameter, nameof(targetForestName));
341throw new ArgumentException(SR.EmptyStringParameter, nameof(targetForestName));
354throw new ArgumentException(SR.EmptyStringParameter, nameof(targetForestName));
367throw new ArgumentException(SR.EmptyStringParameter, nameof(targetForestName));
380throw new ArgumentException(SR.EmptyStringParameter, nameof(targetForestName));
393throw new ArgumentException(SR.EmptyStringParameter, nameof(targetForestName));
421throw new ArgumentException(SR.EmptyStringParameter, nameof(targetForestName));
471throw new ArgumentException(SR.EmptyStringParameter, nameof(targetForestName));
480throw new ArgumentException(SR.EmptyStringParameter, nameof(trustPassword));
523throw new ArgumentException(SR.EmptyStringParameter, nameof(targetForestName));
529throw new ArgumentException(SR.EmptyStringParameter, nameof(newTrustPassword));
542throw new ArgumentException(SR.EmptyStringParameter, nameof(targetForestName));
551throw new ArgumentException(SR.EmptyStringParameter, nameof(newTrustPassword));
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (11)
41throw new ArgumentException(SR.TargetShouldBeGC, nameof(context));
95throw new ArgumentException(SR.TargetShouldBeForest, nameof(context));
107throw new ArgumentException(SR.TargetShouldBeForest, nameof(context));
121throw new ArgumentException(SR.TargetShouldBeForest, nameof(context));
133throw new ArgumentException(SR.TargetShouldBeForest, nameof(context));
147throw new ArgumentException(SR.TargetShouldBeForest, nameof(context));
162throw new ArgumentException(SR.TargetShouldBeForest, nameof(context));
349throw new ArgumentException(SR.EmptyStringParameter, nameof(siteName));
355throw new ArgumentException(SR.InvalidFlags, nameof(flag));
388throw new ArgumentException(SR.InvalidFlags, nameof(flag));
412throw new ArgumentException(SR.EmptyStringParameter, nameof(siteName));
System.DirectoryServices.AccountManagement (1)
System.DirectoryServices.Protocols (34)
System\DirectoryServices\Protocols\common\DirectoryAttribute.cs (8)
115throw new ArgumentException(SR.ValidDirectoryAttributeType, nameof(valuesType));
147throw new ArgumentException(SR.ValidValueType, nameof(value));
166throw new ArgumentException(SR.ValidValueType, nameof(value));
178throw new ArgumentException(SR.ValidValuesType, nameof(values));
185throw new ArgumentException(SR.NullValueArray, nameof(values));
219throw new ArgumentException(SR.ValidValueType, nameof(value));
356throw new ArgumentException(SR.Format(SR.InvalidValueType, nameof(DirectoryAttribute)), nameof(value));
435throw new ArgumentException(SR.Format(SR.InvalidValueType, nameof(DirectoryAttributeModification)), nameof(value));
System\DirectoryServices\Protocols\common\DirectoryControl.cs (10)
644throw new ArgumentException(SR.ValidValue, nameof(value));
727throw new ArgumentException(SR.ValidValue, nameof(value));
809throw new ArgumentException(SR.NullValueArray, nameof(sortKeys));
854throw new ArgumentException(SR.NullValueArray, nameof(value));
964throw new ArgumentException(SR.ValidValue, nameof(value));
978throw new ArgumentException(SR.ValidValue, nameof(value));
992throw new ArgumentException(SR.ValidValue, nameof(value));
1006throw new ArgumentException(SR.ValidValue, nameof(value));
1180throw new ArgumentException(SR.ContainNullControl, nameof(controls));
1219throw new ArgumentException(SR.Format(SR.InvalidValueType, nameof(DirectoryControl)), nameof(value));
System.Drawing.Common (25)
System\Drawing\Font.cs (5)
206throw new ArgumentException(message: null, nameof(graphics));
281throw new ArgumentException(null, nameof(logFont));
410throw new ArgumentException(SR.Format(SR.InvalidBoundArgument, nameof(emSize), emSize, 0, "System.Single.MaxValue"), nameof(emSize));
517throw new ArgumentException(SR.Format(SR.InvalidBoundArgument, nameof(emSize), emSize, 0, "System.Single.MaxValue"), nameof(emSize));
638throw new ArgumentException(null, nameof(lf));
System.Formats.Asn1 (27)
System.Formats.Cbor (2)
System.Formats.Nrbf (1)
System.Formats.Tar (16)
System.IO.Compression (22)
System.IO.Compression.Brotli (3)
System.IO.Compression.ZipFile (10)
System.IO.FileSystem.AccessControl (2)
System.IO.FileSystem.DriveInfo (2)
System.IO.FileSystem.Watcher (4)
System.IO.Hashing (1)
System.IO.MemoryMappedFiles (5)
System.IO.Packaging (5)
System.IO.Pipes (7)
System.IO.Ports (4)
System.Linq.Expressions (81)
System\Linq\Expressions\Error.cs (81)
47return new ArgumentException(Strings.SameKeyExistsInExpando(key), nameof(key));
124return new ArgumentException(Strings.SetterHasNoParams, paramName);
131return new ArgumentException(Strings.PropertyCannotHaveRefType, paramName);
138return new ArgumentException(Strings.IndexesOfSetGetMustMatch, paramName);
159return new ArgumentException(Strings.AccessorsCannotHaveVarArgs, paramName);
166return new ArgumentException(Strings.AccessorsCannotHaveByRefArgs, paramName);
194return new ArgumentException(Strings.BoundsCannotBeLessThanOne, paramName);
201return new ArgumentException(Strings.TypeMustNotBeByRef, paramName);
209return new ArgumentException(Strings.TypeMustNotBePointer, paramName);
217return new ArgumentException(Strings.SetterMustBeVoid, paramName);
225return new ArgumentException(Strings.PropertyTypeMustMatchGetter, paramName);
233return new ArgumentException(Strings.PropertyTypeMustMatchSetter, paramName);
240return new ArgumentException(Strings.BothAccessorsMustBeStatic, paramName);
247return new ArgumentException(Strings.OnlyStaticFieldsHaveNullInstance, paramName);
254return new ArgumentException(Strings.OnlyStaticPropertiesHaveNullInstance, paramName);
268return new ArgumentException(Strings.PropertyTypeCannotBeVoid, paramName);
275return new ArgumentException(Strings.InvalidUnboxType, paramName);
282return new ArgumentException(Strings.ExpressionMustBeWriteable, paramName);
289return new ArgumentException(Strings.ArgumentMustNotHaveValueType, paramName);
303return new ArgumentException(Strings.AllTestValuesMustHaveSameType, paramName);
310return new ArgumentException(Strings.AllCaseBodiesMustHaveSameType, paramName);
317return new ArgumentException(Strings.DefaultBodyMustBeSupplied, paramName);
324return new ArgumentException(Strings.LabelMustBeVoidOrHaveExpression, paramName);
331return new ArgumentException(Strings.LabelTypeMustBeVoid, paramName);
338return new ArgumentException(Strings.QuotedExpressionMustBeLambda, paramName);
345return new ArgumentException(Strings.VariableMustNotBeByRef(p0, p1), paramName);
359return new ArgumentException(Strings.DuplicateVariable(p0), paramName);
380return new ArgumentException(Strings.FaultCannotHaveCatchOrFinally, paramName);
408return new ArgumentException(Strings.UserDefinedOperatorMustBeStatic(p0), paramName);
415return new ArgumentException(Strings.UserDefinedOperatorMustNotBeVoid(p0), paramName);
478return new ArgumentException(Strings.ArgumentMustBeArray, paramName);
485return new ArgumentException(Strings.ArgumentMustBeBoolean, paramName);
492return new ArgumentException(Strings.EqualityMustReturnBoolean(p0), paramName);
499return new ArgumentException(Strings.ArgumentMustBeFieldInfoOrPropertyInfo, paramName);
506return new ArgumentException(Strings.ArgumentMustBeFieldInfoOrPropertyInfoOrMethod, paramName);
521return new ArgumentException(Strings.ArgumentMustBeInstanceMember, paramName);
535return new ArgumentException(Strings.ArgumentMustBeInteger, paramName);
549return new ArgumentException(Strings.ArgumentMustBeArrayIndexType, paramName);
563return new ArgumentException(Strings.ArgumentMustBeSingleDimensionalArrayType, paramName);
577return new ArgumentException(Strings.ArgumentTypesMustMatch, paramName);
598return new ArgumentException(Strings.IncorrectTypeForTypeAs(p0), paramName);
620return new ArgumentException(Strings.ArgumentTypeDoesNotMatchMember(p0, p1), paramName);
634return new ArgumentException(Strings.ArgumentMemberNotDeclOnType(p0, p1), paramName);
670return new ArgumentException(Strings.ExpressionTypeNotInvocable(p0), paramName);
727return new ArgumentException(Strings.LambdaTypeMustBeDerivedFromSystemDelegate, paramName);
734return new ArgumentException(Strings.MemberNotFieldOrProperty(p0), paramName);
741return new ArgumentException(Strings.MethodContainsGenericParameters(p0), paramName);
748return new ArgumentException(Strings.MethodIsGeneric(p0), paramName);
755return new ArgumentException(Strings.MethodNotPropertyAccessor(p0, p1), paramName);
769return new ArgumentException(Strings.PropertyDoesNotHaveGetter(p0), paramName);
783return new ArgumentException(Strings.PropertyDoesNotHaveSetter(p0), paramName);
790return new ArgumentException(Strings.PropertyDoesNotHaveAccessor(p0), paramName);
797return new ArgumentException(Strings.NotAMemberOfType(p0, p1), paramName);
812return new ArgumentException(Strings.NotAMemberOfAnyType(p0), paramName);
827return new ArgumentException(Strings.PropertyNotDefinedForType(p0, p1), paramName);
834return new ArgumentException(Strings.InstancePropertyNotDefinedForType(p0, p1), paramName);
848return new ArgumentException(Strings.InstancePropertyWithSpecifiedParametersNotDefinedForType(p0, p1, p2), paramName);
863return new ArgumentException(Strings.TypeMissingDefaultConstructor(p0), paramName);
871return new ArgumentException(Strings.ElementInitializerMethodNotAdd, paramName);
878return new ArgumentException(Strings.ElementInitializerMethodNoRefOutParam(p0, p1), paramName);
885return new ArgumentException(Strings.ElementInitializerMethodWithZeroArgs, paramName);
892return new ArgumentException(Strings.ElementInitializerMethodStatic, paramName);
899return new ArgumentException(Strings.TypeNotIEnumerable(p0), paramName);
907return new ArgumentException(Strings.UnhandledBinary(p0), paramName);
929return new ArgumentException(Strings.UnhandledUnary(p0), paramName);
936return new ArgumentException(Strings.UnknownBindingType, $"bindings[{index}]");
992return new ArgumentException(Strings.IncorrectNumberOfTypeArgsForFunc, paramName);
999return new ArgumentException(Strings.IncorrectNumberOfTypeArgsForAction, paramName);
1006return new ArgumentException(Strings.ArgumentCannotBeOfTypeVoid, paramName);
1213return new ArgumentException(Strings.NonStaticConstructorRequired, paramName);
1245return new ArgumentException(Strings.TypeContainsGenericParameters(p0), paramName);
1261return new ArgumentException(Strings.TypeIsGeneric(p0), paramName);
1285return new ArgumentException(Strings.ExpressionTypeDoesNotMatchMethodParameter(p0, p1, p2), paramName);
1301return new ArgumentException(Strings.ExpressionTypeDoesNotMatchParameter(p0, p1), paramName);
1325return new ArgumentException(Strings.IncorrectNumberOfMethodCallArguments(p0), paramName);
1333return new ArgumentException(Strings.ExpressionTypeDoesNotMatchConstructorParameter(p0, p1), paramName);
1350return new ArgumentException(Strings.ExpressionMustBeReadable, paramName);
1363return new ArgumentException(Strings.InvalidArgumentValue_ParamName, paramName);
1368return new ArgumentException(Strings.NonEmptyCollectionRequired, paramName);
1373return new ArgumentException(Strings.InvalidNullValue(type), paramName);
1378return new ArgumentException(Strings.InvalidObjectType(value?.GetType() as object ?? "null", type), paramName);
System.Management (25)
System\Management\ManagementQuery.cs (21)
678throw new ArgumentException(SR.InvalidQuery, nameof(queryOrClassName));
750throw new ArgumentException(SR.InvalidQuery, nameof(isSchemaQuery));
1039throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, keyword), nameof(query));
1045throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, "*"), nameof(query));
1053throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, keyword), nameof(query));
1061throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, keyword), nameof(query));
1072throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, keyword), nameof(query));
1276throw new ArgumentException(SR.InvalidQuery, nameof(queryOrSourceObject));
1350throw new ArgumentException(SR.InvalidQuery, nameof(isSchemaQuery));
1646throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, TokenAssociators), nameof(query)); // Invalid query
1659throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, TokenOf), nameof(query)); // Invalid query
1683throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, TokenWhere), nameof(query)); // Invalid query
1903throw new ArgumentException(SR.InvalidQuery, nameof(queryOrSourceObject));
1962throw new ArgumentException(SR.InvalidQuery, nameof(isSchemaQuery));
2163throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, TokenReferences), nameof(query)); // Invalid query
2176throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, TokenOf), nameof(query)); // Invalid query
2200throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, TokenWhere), nameof(query)); // Invalid query
2490throw new ArgumentException(SR.InvalidQuery, nameof(queryOrEventClassName));
3038throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, "*"), nameof(query));
3044throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, keyword), nameof(query));
3114throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, keyword), nameof(query));
System.Memory (3)
System.Net.Http (5)
System.Net.Http.WinHttpHandler (2)
System.Net.HttpListener (15)
System.Net.Mail (4)
System.Net.NameResolution (11)
System.Net.Ping (2)
System.Net.Primitives (8)
System.Net.Quic (5)
System.Net.Requests (23)
System\Net\HttpWebRequest.cs (10)
383throw new ArgumentException(SR.net_invalid_host, nameof(value));
477throw new ArgumentException(SR.net_nochunked, nameof(value));
615throw new ArgumentException(SR.net_connarg, nameof(value));
664throw new ArgumentException(SR.net_no100, nameof(value));
836throw new ArgumentException(SR.net_wrongversion, nameof(value));
937throw new ArgumentException(SR.net_badmethod, nameof(value));
1171throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult));
1444throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult));
1532throw new ArgumentException(SR.net_nottoken, nameof(rangeSpecifier));
1551throw new ArgumentException(SR.net_nottoken, nameof(rangeSpecifier));
System.Net.Security (15)
System.Net.ServerSentEvents (2)
System.Net.Sockets (41)
System\Net\Sockets\Socket.cs (29)
244throw new ArgumentException(SR.Arg_InvalidHandle, nameof(handle));
941throw new ArgumentException(SR.net_sockets_invalid_ipaddress_length, nameof(addresses));
979throw new ArgumentException(SR.net_invalidAddressList, nameof(addresses));
1148throw new ArgumentException(SR.Format(SR.net_sockets_zerolist, nameof(buffers)), nameof(buffers));
1642throw new ArgumentException(SR.Format(SR.net_sockets_zerolist, nameof(buffers)), nameof(buffers));
1760throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, remoteEP.AddressFamily, _addressFamily), nameof(remoteEP));
2132throw new ArgumentException(SR.Format(SR.net_sockets_invalid_optionValue, "LingerOption"), nameof(optionValue));
2136throw new ArgumentException(SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper_Named, 0, (int)ushort.MaxValue, "optionValue.LingerTime"), nameof(optionValue));
2145throw new ArgumentException(SR.Format(SR.net_sockets_invalid_optionValue, "MulticastOption"), nameof(optionValue));
2155throw new ArgumentException(SR.Format(SR.net_sockets_invalid_optionValue, "IPv6MulticastOption"), nameof(optionValue));
2161throw new ArgumentException(SR.net_sockets_invalid_optionValue_all, nameof(optionValue));
2318throw new ArgumentException(SR.net_sockets_invalid_optionValue_all, nameof(level));
2700throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPoint.AddressFamily, _addressFamily), nameof(endPoint));
2740throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPoint.AddressFamily, _addressFamily), nameof(endPoint));
2849throw new ArgumentException(SR.net_multibuffernotsupported, nameof(e));
2901throw new ArgumentException(SR.net_multibuffernotsupported, "BufferList");
3001throw new ArgumentException(SR.Format(SR.net_sockets_invalid_connect_algorithm, connectAlgorithm), nameof(connectAlgorithm));
3006throw new ArgumentException(SR.net_multibuffernotsupported, nameof(e));
3010throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
3114throw new ArgumentException(SR.Format(SR.net_sockets_invalid_dnsendpoint, "e.RemoteEndPoint"), nameof(e));
3119throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
3123throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPointSnapshot.AddressFamily, _addressFamily), nameof(e));
3168throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
3172throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, e.RemoteEndPoint.AddressFamily, _addressFamily), nameof(e));
3240throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.SendPacketsElements"), nameof(e));
3278throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
3360throw new ArgumentException(SR.Format(SR.net_sockets_invalid_dnsendpoint, nameof(remoteEP)), nameof(remoteEP));
3975throw new ArgumentException(SR.Format(SR.net_sockets_invalid_dnsendpoint, remoteEndPointArgumentName), remoteEndPointArgumentName);
3980throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, remoteEndPoint.AddressFamily, _addressFamily), remoteEndPointArgumentName);
System.Net.WebHeaderCollection (7)
System.Net.WebSockets (9)
System.Net.WebSockets.Client (8)
System.Numerics.Tensors (10)
System.ObjectModel (15)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (11)
30throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Reset), nameof(action));
59throw new ArgumentException(SR.ResetActionRequiresNullItem, nameof(action));
63throw new ArgumentException(SR.ResetActionRequiresIndexMinus1, nameof(action));
78throw new ArgumentException(SR.MustBeResetAddOrRemoveActionForCtor, nameof(action));
107throw new ArgumentException(SR.ResetActionRequiresNullItem, nameof(action));
111throw new ArgumentException(SR.ResetActionRequiresIndexMinus1, nameof(action));
133throw new ArgumentException(SR.MustBeResetAddOrRemoveActionForCtor, nameof(action));
161throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Replace), nameof(action));
192throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Replace), nameof(action));
214throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Move), nameof(action));
235throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Move), nameof(action));
System.Private.CoreLib (452)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (11)
1065throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value));
1090throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value));
1110throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value));
1132throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value));
1153throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value));
1321_ => throw new ArgumentException(SR.Format(SR.Format_BadFormatSpecifier, format), nameof(format)),
1597throw new ArgumentException(SR.Arg_ArrayZeroError, nameof(patterns));
1643throw new ArgumentException(SR.Format(SR.Format_BadFormatSpecifier, format), nameof(format));
1659throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value));
1680throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value));
1741throw new ArgumentException(message, styles ? nameof(styles) : nameof(style));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (42)
80throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
84throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, index + count - 1), nameof(unicode));
109throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
114throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, unicode.Length - 1), nameof(unicode));
158throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
185throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
265throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, unicode.Length - 1), nameof(unicode));
299throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, unicode.Length - 1), nameof(unicode));
326throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
336throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, i), nameof(unicode));
348throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
352throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
372throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
376throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize,
415throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
437throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
466throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode));
485throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode));
492throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode));
518throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(unicode));
603throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
615throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize,
653throw new ArgumentException(SR.Format(SR.Argument_IdnBadStd3, c), nameof(c));
666throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(ascii));
689throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(ascii));
728throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii));
732throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize,
755throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii));
763throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii));
782throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
797throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
832throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
839throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
847throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
858throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
864throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
879throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
923throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(ascii));
930throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(ascii));
936throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii));
948throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize, c_defaultNameLimit - (IsDot(output[^1]) ? 0 : 1)), nameof(ascii));
971throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(cp));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\RegionInfo.cs (6)
33throw new ArgumentException(SR.Argument_NoRegionInvariantCulture, nameof(name));
38throw new ArgumentException(SR.Format(SR.Argument_InvalidCultureName, name), nameof(name));
43throw new ArgumentException(SR.Format(SR.Argument_InvalidNeutralRegionName, name), nameof(name));
60throw new ArgumentException(SR.Format(SR.Argument_CultureIsNeutral, culture), nameof(culture));
66throw new ArgumentException(SR.Argument_CustomCultureCannotBePassedByNumber, nameof(culture));
75throw new ArgumentException(SR.Format(SR.Argument_CultureIsNeutral, culture), nameof(culture));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (14)
92throw new ArgumentException(SR.Arg_EmptyArray, nameof(names));
338throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type));
350throw new ArgumentException(SR.Argument_NeedGenericMethodDefinition, nameof(method));
355throw new ArgumentException(SR.Argument_MethodNeedGenericDeclaringType, nameof(method));
360throw new ArgumentException(SR.Argument_InvalidMethodDeclaringType, nameof(type));
373throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type));
385throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type));
390throw new ArgumentException(SR.Argument_ConstructorNeedGenericDeclaringType, nameof(constructor));
395throw new ArgumentException(SR.Argument_InvalidConstructorDeclaringType, nameof(type));
406throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type));
418throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type));
423throw new ArgumentException(SR.Argument_FieldNeedGenericDeclaringType, nameof(field));
428throw new ArgumentException(SR.Argument_InvalidFieldDeclaringType, nameof(type));
439throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (14)
112throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(t));
116throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(t));
127throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(T));
565throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(structureType));
569throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(structureType));
613throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(T));
1157throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type));
1175throw new ArgumentException(SR.Argument_TypeMustNotBeComImport, nameof(type));
1179throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type));
1201throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(t));
1205throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(t));
1213throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(t));
1226throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(TDelegate));
1234throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(TDelegate));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\VersioningHelper.cs (5)
37throw new ArgumentException(SR.Format(SR.Argument_ResourceScopeWrongDirection, fromResType, toResType), nameof(from));
112throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeTypeBits, consumeAsScope), nameof(consumeAsScope));
126throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeTypeBits, calleeScope), nameof(calleeScope));
147throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeVisibilityBits, consumeAsScope), nameof(consumeAsScope));
161throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeVisibilityBits, calleeScope), nameof(calleeScope));
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (10)
101throw new ArgumentException(SR.Argument_DestinationTooShort, "destination");
107throw new ArgumentException(SR.Arg_SpanMustHaveElementsForColor, paramName);
113throw new ArgumentException(SR.Argument_InvalidTimeSpanStyles, "styles");
119throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, value, typeof(TEnum).Name), argumentName);
143throw new ArgumentException(SR.Format(SR.ArgumentException_ValueTupleIncorrectType, obj.GetType()), "other");
290throw new ArgumentException(SR.Arg_CannotBeNaN, GetArgumentName(argument));
518throw new ArgumentException(SR.Arg_InvalidHandle, paramName);
730return new ArgumentException(SR.Format(SR.Arg_WrongType, key, targetType), nameof(key));
735return new ArgumentException(SR.Format(SR.Arg_WrongType, value, targetType), nameof(value));
750return new ArgumentException(GetResourceString(resource), GetArgumentName(argument));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Tuple.cs (8)
154throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
274throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
399throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
534throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
679throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
834throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
999throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
1179throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (11)
289new ArgumentException(SR.Format(SR.Arg_MemberInfoNotFound, member.Name), nameof(member));
488throw new ArgumentException(SR.ArgumentNull_ArrayValue, nameof(args));
623throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
627throw new ArgumentException(SR.Argument_InvalidEnum, "enumType");
636throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
693throw new ArgumentException(SR.Format(SR.FunctionPointer_InvalidCallingConvention, fullName), nameof(callingConventions));
707throw new ArgumentException(SR.ManagedFunctionPointer_CallingConventionsNotAllowed, nameof(callingConventions));
719throw new ArgumentException(SR.FunctionPointer_CallingConventionsUnbalanced, nameof(returnType));
722throw new ArgumentException(SR.FunctionPointer_CallingConventionsUnbalanced, nameof(returnType));
730throw new ArgumentException(SR.FunctionPointer_CallingConventionsUnbalanced, nameof(returnType));
819throw new ArgumentException(SR.Format(SR.Arg_NotGenericTypeDefinition, genericTypeDefinition), nameof(genericTypeDefinition));
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.InvokeMember.cs (13)
34throw new ArgumentException(SR.Arg_NoAccessSpec, nameof(bindingFlags));
52throw new ArgumentException(SR.Arg_NamedParamTooBig, nameof(namedParams));
58throw new ArgumentException(SR.Arg_NamedParamTooBig, nameof(namedParams));
71throw new ArgumentException(SR.Arg_NamedParamNull, nameof(namedParams));
86throw new ArgumentException(SR.Arg_CreatInstAccess, nameof(bindingFlags));
117throw new ArgumentException(SR.Arg_FldSetGet, nameof(bindingFlags));
121throw new ArgumentException(SR.Arg_FldGetPropSet, nameof(bindingFlags));
131throw new ArgumentException(SR.Arg_FldSetPropGet, nameof(bindingFlags));
135throw new ArgumentException(SR.Arg_FldSetInvoke, nameof(bindingFlags));
209throw new ArgumentException(SR.Arg_FldGetArgErr, nameof(bindingFlags));
218throw new ArgumentException(SR.Arg_FldSetArgErr, nameof(bindingFlags));
246throw new ArgumentException(SR.Arg_PropSetGet, nameof(bindingFlags));
255throw new ArgumentException(SR.Arg_PropSetInvoke, nameof(bindingFlags));
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (40)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (12)
661throw new ArgumentException(SR.JsonXmlProcessingInstructionNotSupported, nameof(name));
676throw new ArgumentException(SR.JsonInvalidLocalNameEmpty, nameof(localName));
714throw new ArgumentException(SR.Format(SR.XmlPrefixBoundToNamespace, "xmlns", xmlnsNamespace, ns), nameof(ns));
719throw new ArgumentException(SR.Format(SR.JsonPrefixMustBeNullOrEmpty, prefix), nameof(prefix));
742throw new ArgumentException(SR.Format(SR.JsonNamespaceMustBeEmpty, ns), nameof(ns));
748throw new ArgumentException(SR.JsonInvalidLocalNameEmpty, nameof(localName));
804throw new ArgumentException(SR.Format(SR.JsonUnexpectedAttributeLocalName, localName), nameof(localName));
833throw new ArgumentException(SR.JsonInvalidLocalNameEmpty, nameof(localName));
839throw new ArgumentException(SR.Format(SR.JsonPrefixMustBeNullOrEmpty, prefix), nameof(prefix));
846throw new ArgumentException(SR.Format(SR.JsonNamespaceMustBeEmpty, ns), nameof(ns));
1061throw new ArgumentException(SR.Format(SR.JsonOnlyWhitespace, ws[pos].ToString(), "WriteWhitespace"), nameof(ws));
1432throw new ArgumentException(SR.JsonNestedArraysNotSupported, nameof(value));
System\Xml\XmlBaseWriter.cs (17)
231throw new ArgumentException(SR.Format(SR.XmlPrefixBoundToNamespace, "xml", xmlNamespace, ns), nameof(ns));
239throw new ArgumentException(SR.Format(SR.XmlPrefixBoundToNamespace, "xmlns", xmlnsNamespace, ns), nameof(ns));
253throw new ArgumentException(SR.Format(SR.XmlUndefinedPrefix, prefix), nameof(prefix));
260throw new ArgumentException(SR.XmlEmptyNamespaceRequiresNullPrefix, nameof(prefix));
442throw new ArgumentException(SR.XmlInvalidCommentChars, nameof(text));
499throw new ArgumentException(SR.InvalidLocalNameEmpty, nameof(localName));
513throw new ArgumentException(SR.Format(SR.XmlUndefinedPrefix, prefix), nameof(prefix));
563throw new ArgumentException(SR.Format(SR.XmlUndefinedPrefix, prefix), nameof(prefix));
819throw new ArgumentException(SR.Format(SR.XmlNamespaceNotFound, namespaceUri), nameof(namespaceUri));
847throw new ArgumentException(SR.InvalidLocalNameEmpty, nameof(localName));
891throw new ArgumentException(SR.XmlProcessingInstructionNotSupported, nameof(name));
967throw new ArgumentException(SR.XmlOnlyWhitespace, nameof(whitespace));
1106throw new ArgumentException(SR.XmlMissingLowSurrogate, nameof(ch));
1227throw new ArgumentException(SR.XmlNestedArraysNotSupported, nameof(value));
2150throw new ArgumentException(SR.XmlReservedPrefix, nameof(prefix));
2163throw new ArgumentException(SR.Format(SR.XmlPrefixBoundToNamespace, prefix, nameSpace.Uri, uri), nameof(prefix));
2167throw new ArgumentException(SR.XmlEmptyNamespaceRequiresNullPrefix, nameof(prefix));
System.Private.Uri (7)
System.Private.Windows.Core (12)
System.Private.Xml (56)
System\Xml\Serialization\XmlSerializationReader.cs (11)
992throw new ArgumentException(SR.Format(SR.XmlEmptyArrayType, CurrentTag()), nameof(value));
1005throw new ArgumentException(SR.XmlInvalidArraySyntax, nameof(value));
1013throw new ArgumentException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()), nameof(value));
1018throw new ArgumentException(SR.XmlMismatchedArrayBrackets, nameof(value));
1026throw new ArgumentException(SR.Format(SR.XmlInvalidArrayLength, new string(lengthStringSpan)), nameof(value));
1040throw new ArgumentException(SR.XmlMismatchedArrayBrackets, nameof(value));
1042throw new ArgumentException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()), nameof(value));
1044throw new ArgumentException(SR.XmlInvalidArraySyntax, nameof(value));
1094throw new ArgumentException(SR.Format(SR.XmlInvalidArrayLength, dimensions[i]), "value");
2396throw new ArgumentException(SR.XmlInternalError, nameof(xmlMapping));
2402throw new ArgumentException(SR.XmlInternalError, nameof(xmlMapping));
System\Xml\XmlEncoding.cs (5)
32throw new ArgumentException(SR.Format(SR.Enc_InvalidByteInEncoding, -1), (string?)null);
524throw new ArgumentException(SR.Format(SR.Enc_InvalidByteInEncoding, new object[1] { i }), (string?)null);
565throw new ArgumentException(SR.Format(SR.Enc_InvalidByteInEncoding, new object[1] { i }), (string?)null);
607throw new ArgumentException(SR.Format(SR.Enc_InvalidByteInEncoding, new object[1] { i }), (string?)null);
649throw new ArgumentException(SR.Format(SR.Enc_InvalidByteInEncoding, new object[1] { i }), (string?)null);
System.Private.Xml.Linq (5)
System.Reflection.Context (1)
System.Reflection.DispatchProxy (5)
System.Reflection.Emit (24)
System\Reflection\Emit\CustomAttributeWrapper.cs (4)
44throw new ArgumentException(SR.Format(SR.Argument_InvalidCustomAttributeLength, ctor.DeclaringType, binaryAttribute.Length), nameof(binaryAttribute));
48throw new ArgumentException(SR.Format(SR.Argument_InvalidProlog, ctor.DeclaringType), nameof(binaryAttribute));
88throw new ArgumentException(SR.Format(SR.Argument_UnknownNamedType, ctor.DeclaringType, namedType), nameof(binaryAttribute));
174_ => throw new ArgumentException(SR.Argument_InvalidTypeCodeForTypeArgument, "binaryAttribute"),
System\Reflection\Emit\PseudoCustomAttributesData.cs (6)
346throw new ArgumentException(SR.Argument_InvalidArgumentForAttribute, nameof(con));
372throw new ArgumentException(SR.Format(SR.Argument_InvalidParameterForUnmanagedType, paramNames[i], "ByValTStr"), "binaryAttribute");
380throw new ArgumentException(SR.Argument_SizeConstMustBeSpecified, "binaryAttribute");
406throw new ArgumentException(SR.Format(SR.Argument_InvalidParameterForUnmanagedType, paramNames[i], "SafeArray"), "binaryAttribute");
422throw new ArgumentException(SR.Format(SR.Argument_InvalidParameterForUnmanagedType, elementType, "SafeArray"), "binaryAttribute");
459throw new ArgumentException(SR.Format(SR.Argument_InvalidParameterForUnmanagedType,
System\Reflection\Emit\TypeBuilderImpl.cs (7)
281throw new ArgumentException(SR.Argument_BadSizeForData, nameof(data.Length));
317throw new ArgumentException(SR.Format(SR.Argument_MethodOverridden, methodInfoBody.Name, FullName), nameof(methodInfoDeclaration));
358new ArgumentException(SR.Format(SR.Argument_InvalidMethodOverride, FullName, methodName), "methodInfoBody");
420throw new ArgumentException(SR.Argument_BadSizeForData, nameof(size));
541throw new ArgumentException(SR.Format(SR.Argument_UnknownNamedType, con.DeclaringType, name), nameof(binaryAttribute));
1310throw new ArgumentException(SR.Argument_MustBeInterface, nameof(interfaceType));
1315throw new ArgumentException(SR.Argument_InterfaceNotFound, nameof(interfaceType));
System.Reflection.Metadata (34)
System.Reflection.MetadataLoadContext (10)
System.Resources.Extensions (1)
System.Runtime.Caching (13)
System\Runtime\Caching\Configuration\ConfigUtil.cs (5)
37throw new ArgumentException(RH.Format(SR.Value_must_be_non_negative_integer, valueName, sValue), nameof(config));
40throw new ArgumentException(RH.Format(SR.Value_must_be_positive_integer, valueName, sValue), nameof(config));
45throw new ArgumentException(RH.Format(SR.Value_too_big,
71throw new ArgumentException(RH.Format(SR.TimeSpan_invalid_format, valueName, sValue), nameof(config));
91throw new ArgumentException(RH.Format(SR.Value_must_be_boolean, valueName, sValue), nameof(config));
System.Runtime.InteropServices (4)
System.Runtime.InteropServices.JavaScript (4)
System.Runtime.Numerics (3)
System.Runtime.Serialization.Formatters (4)
System.Security.AccessControl (39)
System.Security.Claims (1)
System.Security.Cryptography (264)
System\Security\Cryptography\CryptographicOperations.cs (7)
191throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
500throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
837throw new ArgumentException(SR.Format(SR.Argument_HashImprecise, hashSizeInBytes), nameof(hash));
928throw new ArgumentException(SR.Format(SR.Argument_HashImprecise, hashSizeInBytes), nameof(hash));
1023throw new ArgumentException(SR.Format(SR.Argument_HashImprecise, hashSizeInBytes), nameof(hash));
1090throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
1142throw new ArgumentException(SR.Argument_DestinationTooShort, "destination");
System\Security\Cryptography\HKDF.cs (7)
57throw new ArgumentException(SR.Format(SR.Cryptography_Prk_TooSmall, hashLength), nameof(prk));
92throw new ArgumentException(SR.Format(SR.Cryptography_Prk_TooSmall, hashLength), nameof(prk));
123throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(output));
126throw new ArgumentException(SR.Format(SR.Cryptography_Prk_TooSmall, hashLength), nameof(prk));
131throw new ArgumentException(SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength), nameof(output));
180throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(output));
185throw new ArgumentException(SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength), nameof(output));
System\Security\Cryptography\HMACStatic.cs (12)
27throw new ArgumentException(SR.Format(SR.Argument_HashImprecise, THMAC.HashSizeInBytes), nameof(hash));
63throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
90throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
93throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
104throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
125throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
147throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
150throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
175throw new ArgumentException(SR.Format(SR.Argument_HashImprecise, THMAC.HashSizeInBytes), nameof(hash));
178throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
208throw new ArgumentException(SR.Format(SR.Argument_HashImprecise, THMAC.HashSizeInBytes), nameof(hash));
211throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\SymmetricAlgorithm.cs (11)
377throw new ArgumentException(SR.Cryptography_MatchBlockSize, nameof(plaintextLength));
448throw new ArgumentException(SR.Argument_BitsMustBeWholeBytes, nameof(feedbackSizeInBits));
456throw new ArgumentException(SR.Cryptography_MatchFeedbackSize, nameof(plaintextLength));
564throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
682throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
826throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
979throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
1200throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
1432throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
1674throw new ArgumentException(SR.Cryptography_InvalidIVSize, nameof(iv));
1681throw new ArgumentException(SR.Cryptography_InvalidFeedbackSize, nameof(feedbackSizeInBits));
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (12)
395throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(rawData));
413throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(rawData));
774throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
862throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
873throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
964throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
975throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
1060throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
1075throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
1170throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
1178throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
1719throw new ArgumentException(
System.Security.Cryptography.Cose (46)
System\Security\Cryptography\Cose\CoseKey.cs (6)
111throw new ArgumentException(SR.Format(SR.Sign1UnsupportedKey, key.GetType().Name), nameof(key));
263throw new ArgumentException(SR.Sign1UnsupportedKey, KeyType.ToString());
279_ => throw new ArgumentException(SR.Format(SR.Sign1SignUnsupportedHashAlgorithm, hashAlgorithm.Name), nameof(hashAlgorithm))
290_ => throw new ArgumentException(SR.Format(SR.Sign1SignUnsupportedHashAlgorithm, hashAlgorithm.Name), nameof(hashAlgorithm))
301_ => throw new ArgumentException(SR.Format(SR.Sign1SignUnsupportedHashAlgorithm, hashAlgorithm.Name), nameof(hashAlgorithm))
322throw new ArgumentException(SR.Format(SR.Sign1UnknownCoseAlgorithm, algorithm.Name), "key");
System\Security\Cryptography\Cose\CoseSign1Message.cs (14)
159throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent));
162throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
210throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent));
213throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
297throw new ArgumentException(SR.Sign1SignHeaderDuplicateLabels, nameof(signer));
302throw new ArgumentException(SR.Format(SR.CriticalHeaderMissing, labelName), nameof(signer));
693throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent));
698throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
755throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent));
760throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
849throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent));
854throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
911throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent));
916throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
System.Security.Cryptography.Pkcs (11)
System.Security.Cryptography.ProtectedData (2)
System.Security.Cryptography.Xml (29)
System.Security.Permissions (3)
System.Security.Principal.Windows (24)
System\Security\Principal\SID.cs (13)
424throw new ArgumentException(SR.IdentityReference_InvalidSidRevision, nameof(binaryForm));
433throw new ArgumentException(SR.Format(SR.IdentityReference_InvalidNumberOfSubauthorities, MaxSubAuthorities), nameof(binaryForm));
444throw new ArgumentException(SR.ArgumentOutOfRange_ArrayTooSmall, nameof(binaryForm));
500throw new ArgumentException(SR.Argument_InvalidValue, nameof(sddlForm));
552throw new ArgumentException(SR.IdentityReference_CannotCreateLogonIdsSid, nameof(sidType));
561throw new ArgumentException(SR.Argument_InvalidValue, nameof(sidType));
588throw new ArgumentException(SR.IdentityReference_NotAWindowsDomain, nameof(domainSid));
602throw new ArgumentException(SR.IdentityReference_NotAWindowsDomain, nameof(domainSid));
612throw new ArgumentException(Marshal.GetPInvokeErrorMessage(error), "sidType/domainSid");
826throw new ArgumentException(SR.IdentityReference_MustBeIdentityReference, nameof(targetType));
947throw new ArgumentException(SR.Arg_EmptyCollection, nameof(sourceSids));
967throw new ArgumentException(SR.Argument_ImproperType, nameof(sourceSids));
1126throw new ArgumentException(SR.IdentityReference_MustBeIdentityReference, nameof(targetType));
System.ServiceModel.Federation (2)
System.ServiceModel.NetFramingBase (2)
System.ServiceModel.Primitives (35)
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (2)
654new ArgumentException(SRP.Format(SRP.SFxParameterCountMismatch, "parts", parts.Length, "parameters", parameters.Length), "parameters"));
733new ArgumentException(SRP.Format(SRP.SFxParameterCountMismatch, "parts", parts.Length, "parameters", parameters.Length), "parameters"));
System.ServiceModel.Primitives.Tests (1)
System.ServiceModel.Syndication (9)
System.ServiceProcess.ServiceController (1)
System.Speech (40)
System.Text.Encoding.CodePages (4)
System.Text.Encodings.Web (2)
System.Text.Json (16)
System.Text.RegularExpressions.Generator (1)
System.Threading.AccessControl (4)
System.Threading.RateLimiting (15)
System.Threading.Tasks.Dataflow (40)
Base\DataflowBlock.cs (11)
135if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
621if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
666if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
683if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
1149if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
1150if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
1462if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
2104if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
2105if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
2611if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
2616if (source == null) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
System.Transactions.Local (21)
System.Windows.Controls.Ribbon (2)
System.Windows.Forms (147)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Design (13)
System.Windows.Forms.Primitives (4)
System.Xaml (26)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (6)
331throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
612throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
1096throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
1135throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
1424throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
1499throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
testhost (3)
testhost.arm64 (3)
testhost.x86 (3)
UIAutomationClient (2)
UIAutomationClientSideProviders (2)
UIAutomationTypes (1)
vstest.console (5)
vstest.console.arm64 (5)