15 types derived from ArgumentException
dotnet-svcutil-lib (2)
dotnet-svcutil.xmlserializer (1)
Mono.Cecil (1)
NuGet.Packaging (1)
System.ComponentModel.Primitives (2)
System.Private.CoreLib (6)
System.Text.RegularExpressions (1)
System.Text.RegularExpressions.Generator (1)
10853 instantiations of ArgumentException
aspire (14)
Aspire.Azure.AI.Inference (1)
Aspire.Azure.Messaging.EventHubs (3)
Aspire.Azure.Messaging.ServiceBus (3)
Aspire.Azure.Messaging.WebPubSub (3)
Aspire.Azure.Storage.Queues (3)
Aspire.Cli.EndToEnd.Tests (5)
tests\Shared\CliInstallStrategy.cs (4)
328throw new ArgumentException($"Invalid version format: '{version}'. Must contain only alphanumeric characters, dots, and dashes.", nameof(version));
380throw new ArgumentException($"Invalid version format: '{version}'. Must contain only alphanumeric characters, dots, and dashes.", nameof(version));
407throw new ArgumentException($"Invalid version format: '{version}'. Must contain only alphanumeric characters, dots, and dashes.", nameof(version));
627throw new ArgumentException($"Invalid ASPIRE_E2E_QUALITY value: '{qualityStr}'. Must be one of: {string.Join(", ", Enum.GetNames<CliInstallQuality>())}");
Aspire.Cli.Tests (1)
Aspire.Confluent.Kafka (4)
Aspire.Dashboard (10)
Aspire.Dashboard.Tests (1)
Aspire.Deployment.EndToEnd.Tests (4)
tests\Shared\CliInstallStrategy.cs (4)
328throw new ArgumentException($"Invalid version format: '{version}'. Must contain only alphanumeric characters, dots, and dashes.", nameof(version));
380throw new ArgumentException($"Invalid version format: '{version}'. Must contain only alphanumeric characters, dots, and dashes.", nameof(version));
407throw new ArgumentException($"Invalid version format: '{version}'. Must contain only alphanumeric characters, dots, and dashes.", nameof(version));
627throw new ArgumentException($"Invalid ASPIRE_E2E_QUALITY value: '{qualityStr}'. Must be one of: {string.Join(", ", Enum.GetNames<CliInstallQuality>())}");
Aspire.EndToEnd.Tests (13)
Aspire.Hosting (81)
Aspire.Hosting.Analyzers (2)
Aspire.Hosting.Azure (4)
Aspire.Hosting.Azure.AppConfiguration (1)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.AppService (4)
Aspire.Hosting.Azure.CognitiveServices (1)
Aspire.Hosting.Azure.ContainerRegistry (3)
Aspire.Hosting.Azure.CosmosDB (10)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.KeyVault (4)
Aspire.Hosting.Azure.Kubernetes (2)
Aspire.Hosting.Azure.Kusto.Tests (3)
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 (11)
Aspire.Hosting.Docker (4)
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 (28)
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 (9)
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))
243throw new ArgumentException("Manifest field dictionaries must use string keys.");
Aspire.Hosting.Maui.Tests (2)
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.Python (1)
Aspire.Hosting.Radius (10)
Aspire.Hosting.Redis (1)
Aspire.Hosting.RemoteHost (3)
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.Testing.Tests (1)
Aspire.Hosting.Tests (7)
Aspire.Hosting.Yarp (10)
Aspire.Microsoft.Azure.Cosmos (3)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (3)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (3)
Aspire.Playground.Tests (3)
Aspire.StackExchange.Redis (1)
Aspire.Templates.Tests (10)
Aspire.TerminalHost (1)
Aspire.TestTools (1)
Aspire.TestUtilities (1)
Aspire.TypeSystem (2)
ConfigurationSchemaGenerator (2)
Crossgen2Tasks (2)
csc (1)
datacollector (4)
datacollector.arm64 (4)
dotnet (23)
dotnet-aot (10)
dotnet-dev-certs (2)
dotnet-format (1)
dotnet-getdocument (2)
dotnet-Microsoft.XmlSerializer.Generator (2)
dotnet-openapi (14)
dotnet-sql-cache (3)
dotnet-suggest (3)
dotnet-svcutil-lib (343)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (10)
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");
701throw new ArgumentException(string.Format(SRCodeDom.ArityDoesntMatch, baseType, e.TypeArguments.Count));
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");
1025throw new ArgumentException(string.Format(SRCodeDom.InvalidPathCharsInChecksum, e.FileName));
1031throw new ArgumentException(string.Format(SRCodeDom.InvalidRegion, e.RegionText));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (28)
361throw new ArgumentException(ResXml.Xml_NoRoot);
381throw new ArgumentException(ResXml.Xml_EmptyName);
412throw new ArgumentException(string.Format(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(pubid, i)), "pubid");
419throw new ArgumentException(string.Format(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(sysid, i)), "sysid");
426throw new ArgumentException(string.Format(ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(subset, i)), "subset");
449throw new ArgumentException(ResXml.Xml_EmptyLocalName);
476throw new ArgumentException(ResXml.Xml_PrefixForEmptyNs);
640throw new ArgumentException(ResXml.Xml_EmptyLocalName);
679throw new ArgumentException(ResXml.Xml_XmlnsPrefix);
702throw new ArgumentException(ResXml.Xml_XmlnsPrefix);
712throw new ArgumentException(ResXml.Xml_XmlPrefix);
808throw new ArgumentException(ResXml.Xml_PrefixForEmptyNs);
812throw new ArgumentException(ResXml.Xml_CanNotBindToReservedNamespace);
852throw new ArgumentException(string.Format(ResXml.Xml_InvalidXmlSpace, value));
924throw new ArgumentException(ResXml.Xml_EmptyName);
939throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? ResXml.Xml_DupXmlDecl : ResXml.Xml_CannotWriteXmlDecl);
975throw new ArgumentException(ResXml.Xml_EmptyName);
1002throw new ArgumentException(ResXml.Xml_InvalidSurrogateMissingLowChar);
1058throw new ArgumentException(ResXml.Xml_NonWhitespace);
1368throw new ArgumentException(ResXml.Xml_EmptyLocalName);
1381throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns));
1716throw new ArgumentException(ResXml.Xml_XmlPrefix);
1726throw new ArgumentException(ResXml.Xml_XmlnsPrefix);
1743throw new ArgumentException(string.Format(ResXml.Xml_NamespaceDeclXmlXmlns, prefix));
1827throw new ArgumentException(string.Format(ResXml.Xml_NamespaceDeclXmlXmlns, prefix));
1835throw new ArgumentException(ResXml.Xml_XmlPrefix);
1840throw new ArgumentException(ResXml.Xml_XmlnsPrefix);
2190return new ArgumentException(string.Format(ResXml.Xml_InvalidNameCharsDetail, args));
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 (25)
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"));
261throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xmlns", ns)));
263throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xml", ns)));
322throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidXmlSpace, _attributeValue)));
375throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidXmlSpace, _attributeValue)));
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"));
1942throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xmlns", uri)));
1945throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xml", uri)));
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"));
Shared\ProjectDependency.cs (10)
77throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, filePath, nameof(filePath)));
82throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName)));
91throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageVersion, nameof(packageVersion)));
96throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, dependencyType, nameof(dependencyType)));
104throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName)));
110throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName)));
120throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, packageName, nameof(packageName)));
127throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, filePath, nameof(filePath)));
140throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, filePath, nameof(filePath)));
180throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidDependencyValue, dependencySpec, nameof(dependencySpec)));
dotnet-svcutil.xmlserializer (8)
dotnet-user-jwts (3)
dotnet-user-secrets (3)
EventSourceGenerator (1)
GenerateDocumentationAndConfigFiles (52)
GetDocument.Insider (2)
ILAssembler (1)
ILCompiler.Compiler (21)
ILCompiler.MetadataTransform (64)
ILCompiler.ReadyToRun (19)
ILCompiler.RyuJit (1)
ILCompiler.TypeSystem (2)
illink (22)
ILLink.RoslynAnalyzer (19)
ILLink.Tasks (6)
installer.tasks (3)
libmscordaccore_universal (3)
Microsoft.Analyzers.Local.Tests (2)
Microsoft.AspNetCore.Antiforgery (4)
Microsoft.AspNetCore.App.Analyzers (4)
Microsoft.AspNetCore.AsyncState (2)
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Abstractions (2)
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (5)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Components (24)
Microsoft.AspNetCore.Components.Endpoints (4)
Microsoft.AspNetCore.Components.Forms (12)
Microsoft.AspNetCore.Components.QuickGrid (2)
Microsoft.AspNetCore.Components.Server (7)
Microsoft.AspNetCore.Components.Web (5)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.Abstractions (5)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks (2)
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.HeaderParsing (2)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Hosting.Abstractions (1)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Abstractions (11)
Microsoft.AspNetCore.Http.Connections (3)
Microsoft.AspNetCore.Http.Connections.Client (6)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Microsoft.AspNetCore.Localization (1)
Microsoft.AspNetCore.Mvc.Abstractions (6)
Microsoft.AspNetCore.Mvc.Core (36)
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.Razor (4)
Microsoft.AspNetCore.Mvc.RazorPages (9)
Microsoft.AspNetCore.Mvc.TagHelpers (6)
Microsoft.AspNetCore.Mvc.ViewFeatures (18)
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.Owin (3)
Microsoft.AspNetCore.RateLimiting (3)
Microsoft.AspNetCore.Razor.Utilities.Shared (4)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.ResponseCompression (1)
Microsoft.AspNetCore.Rewrite (5)
Microsoft.AspNetCore.Routing (15)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.IntegrationTesting (10)
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Microsoft.AspNetCore.SignalR.Common (1)
Microsoft.AspNetCore.SpaServices.Extensions (3)
Microsoft.AspNetCore.StaticFiles (2)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.Testing (2)
Microsoft.AspNetCore.WebUtilities (10)
Microsoft.Bcl.AsyncInterfaces (1)
Microsoft.Bcl.Numerics (1)
Microsoft.Build (32)
Microsoft.Build.Framework (22)
Microsoft.Build.Tasks.CodeAnalysis (4)
Microsoft.Build.Tasks.Core (28)
Microsoft.Build.Tasks.Git (3)
Microsoft.Build.Utilities.Core (7)
Microsoft.CodeAnalysis (159)
Compilation\Compilation.cs (32)
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));
1492throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeMemberAndNamesCountMismatch2,
1498throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeArgumentCountMismatch2,
1504throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeArgumentCountMismatch2,
1510throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeArgumentCountMismatch2,
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 (51)
Microsoft.CodeAnalysis.AnalyzerUtilities (48)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\HazardousUsageEvaluator.cs (1)
73throw new ArgumentException(
Microsoft.CodeAnalysis.CodeStyle (37)
Microsoft.CodeAnalysis.CodeStyle.Fixes (11)
Microsoft.CodeAnalysis.CSharp (1593)
Compilation\CSharpCompilation.cs (29)
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));
2480throw new ArgumentException(nameof(rank));
2626throw new ArgumentException(CSharpResources.SyntaxTreeNotFound, nameof(syntaxTree));
4285throw new ArgumentException(string.Format(CSharpResources.NotSameNumberParameterTypesAndRefKinds, parameterTypes.Length, parameterRefKinds.Length));
4291throw new ArgumentException(CSharpResources.OutIsNotValidForReturn);
4296throw new ArgumentException(string.Format(CSharpResources.CallingConventionTypesRequireUnmanaged, nameof(callingConventionTypes), nameof(callingConvention)));
4331throw new ArgumentException(string.Format(CSharpResources.CallingConventionTypeIsInvalid, type.ToDisplayString()));
4384throw new ArgumentException(CodeAnalysisResources.TupleUnderlyingTypeMustBeTupleCompatible, nameof(underlyingType));
4417throw new ArgumentException($"Non-ReadOnly members are not supported in C# anonymous types.");
4453throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps1, name), nameof(name));
4457throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps3, name), nameof(name));
4652throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.ToDisplayString()} operator {name}({csharpLeftType.ToDisplayString()}, {csharpRightType.ToDisplayString()})"));
4679throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps1, name), nameof(name));
4683throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps3, name), nameof(name));
4734throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.ToDisplayString()} operator {name}({csharpOperandType.ToDisplayString()})"));
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 (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
Microsoft.CodeAnalysis.Extensions.Package (21)
Microsoft.CodeAnalysis.ExternalAccess.Extensions (2)
Microsoft.CodeAnalysis.Features (22)
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 (16)
Microsoft.CodeAnalysis.Razor.Compiler (6)
Microsoft.CodeAnalysis.Rebuild (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (40)
Microsoft.CodeAnalysis.Scripting (12)
Microsoft.CodeAnalysis.VisualBasic (5)
Microsoft.CodeAnalysis.Workspaces (146)
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CSharp (8)
Microsoft.Data.Analysis (117)
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 (18)
339throw new ArgumentException(string.Format(Strings.ExceedsNumberOfRows, Rows.Count), nameof(numberOfRows));
371throw new ArgumentException(String.Format(Strings.InvalidColumnName, columnName), nameof(columnName));
403throw new ArgumentException(String.Format("{0} {1}", Strings.MismatchedRowCount, Columns[i].Name));
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 (22)
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));
240throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(DateTime)));
257throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(string)));
274throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(string)));
291throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Boolean)));
308throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Byte)));
325throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Char)));
342throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Double)));
359throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Decimal)));
376throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Single)));
393throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Int32)));
410throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Int64)));
427throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(SByte)));
444throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Int16)));
461throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(string)));
478throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(UInt64)));
495throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(UInt16)));
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.Data.Analysis.Tests (3)
Microsoft.Deployment.DotNet.Releases (4)
Microsoft.Diagnostics.DataContractReader (1)
Microsoft.Diagnostics.DataContractReader.Abstractions (4)
Microsoft.Diagnostics.DataContractReader.Contracts (32)
Microsoft.Diagnostics.DataContractReader.Legacy (231)
Dbi\DacDbiImpl.cs (38)
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));
3679throw new ArgumentException($"Array type with arg count: {pArgInfo->m_nEntries}");
3690throw new ArgumentException($"Pointer or byref type with arg count: {pArgInfo->m_nEntries}");
3740throw new ArgumentException("MethodDesc cannot be null", nameof(vmMethodDesc));
3890throw new ArgumentException("vmRuntimeThread cannot be null for thread static fields");
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));
5929throw new ArgumentException("Output pointer cannot be null.");
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));
6389throw new ArgumentException("Output pointers must not be null.");
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 (20)
Microsoft.DiaSymReader (2)
Microsoft.DotNet.ApiCompat.Task (3)
Microsoft.DotNet.ApiSymbolExtensions (2)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Manifest (3)
Microsoft.DotNet.Build.Tasks.Feed (2)
Microsoft.DotNet.Build.Tasks.FileCatalog (4)
Microsoft.DotNet.Build.Tasks.Installers (6)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.Build.Tasks.Workloads (4)
Microsoft.DotNet.Cli.Definitions (1)
Microsoft.DotNet.Cli.Utils (7)
Microsoft.DotNet.GenFacades (1)
Microsoft.DotNet.HotReload.Watch (2)
Microsoft.DotNet.PackageValidation (1)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.TemplateLocator (16)
Microsoft.DotNet.XliffTasks (4)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Evaluation (2)
Microsoft.Extensions.AI.Evaluation.Console (2)
Microsoft.Extensions.AI.Evaluation.Console.Tests (1)
Microsoft.Extensions.AI.Evaluation.NLP (2)
Microsoft.Extensions.AI.Evaluation.Quality (2)
Microsoft.Extensions.AI.Evaluation.Reporting (2)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
Microsoft.Extensions.AI.Evaluation.Safety (2)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.AI.Tests (2)
Microsoft.Extensions.AmbientMetadata.Application (2)
Microsoft.Extensions.AmbientMetadata.Build (2)
Microsoft.Extensions.AsyncState (2)
Microsoft.Extensions.Caching.Abstractions (1)
Microsoft.Extensions.Caching.Hybrid (4)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Caching.SqlServer (1)
Microsoft.Extensions.Compliance.Abstractions (3)
Microsoft.Extensions.Compliance.Redaction (2)
Microsoft.Extensions.Compliance.Testing (2)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (3)
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 (2)
Microsoft.Extensions.DataIngestion.Abstractions (2)
Microsoft.Extensions.DataIngestion.Markdig (2)
Microsoft.Extensions.DataIngestion.MarkItDown (2)
Microsoft.Extensions.DependencyInjection (8)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.DependencyInjection.AutoActivation (2)
Microsoft.Extensions.DependencyModel (14)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (1)
Microsoft.Extensions.Diagnostics.HealthChecks (4)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (2)
Microsoft.Extensions.Diagnostics.Probes (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes (2)
Microsoft.Extensions.Diagnostics.Testing (2)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Hosting.Testing (2)
Microsoft.Extensions.Http (2)
Microsoft.Extensions.Http.Resilience (2)
Microsoft.Extensions.Identity.Core (3)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.ML (3)
Microsoft.Extensions.ObjectPool.DependencyInjection (2)
Microsoft.Extensions.Options.Contextual (2)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (4)
Microsoft.Extensions.Resilience (2)
Microsoft.Extensions.ServiceDiscovery (4)
Microsoft.Extensions.ServiceDiscovery.Abstractions (3)
Microsoft.Extensions.ServiceDiscovery.Dns (4)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Yarp (2)
Microsoft.Extensions.Telemetry (2)
Microsoft.Extensions.Telemetry.Abstractions (2)
Microsoft.Extensions.TimeProvider.Testing (2)
Microsoft.Extensions.VectorData.Abstractions (3)
Microsoft.Extensions.VectorData.ConformanceTests (3)
Microsoft.Gen.BuildMetadata (1)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Generated.Tests (8)
LogMethodTests.cs (8)
261CollectionTestExtensions.M9(logger, LogLevel.Critical, 0, new ArgumentException("Foo"), 1);
575ExceptionTestExtensions.M0(logger, new ArgumentException("Foo"), new ArgumentException("Bar"));
582ExceptionTestExtensions.M1(new ArgumentException("Foo"), logger, new ArgumentException("Bar"));
589ExceptionTestExtensions.M2(logger, "One", new ArgumentException("Foo"));
596var exception = new ArgumentException("Foo");
852AtSymbolsTestExtensions.UseAtSymbol4(logger, LogLevel.Debug, "42", 42, new ArgumentException("Foo"));
Microsoft.Gen.Metrics (1)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
Microsoft.Interop.SourceGeneration (12)
Microsoft.JSInterop (7)
Microsoft.Maui (21)
Microsoft.Maui.Controls (58)
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 (2)
Microsoft.Maui.Controls.Build.Tasks (3)
Microsoft.Maui.Controls.Maps (1)
Microsoft.Maui.Controls.Xaml (11)
Microsoft.Maui.Essentials (8)
Microsoft.ML.AutoML (34)
Utils\UserInputValidationUtil.cs (17)
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));
152throw new ArgumentException($"Null column string was specified as {columnPurpose} in column information");
160throw new ArgumentException("Provided label column cannot be null");
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 " +
260throw new ArgumentException(exceptionMessage);
273throw new ArgumentException($"Provided {columnPurpose} column '{columnName}' was of type {itemType}, " +
278throw new ArgumentException($"Provided {columnPurpose} column '{columnName}' was of type {itemType}, " +
Microsoft.ML.AutoML.SourceGenerator (2)
Microsoft.ML.AutoML.Tests (3)
Microsoft.ML.CodeGenerator (5)
Microsoft.ML.Core (2)
Microsoft.ML.DataView (5)
Microsoft.ML.GenAI.Core (10)
Microsoft.ML.GenAI.LLaMA (2)
Microsoft.ML.GenAI.Mistral (2)
Microsoft.ML.GenAI.Phi (6)
Microsoft.ML.ImageAnalytics (10)
MLImage.cs (9)
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));
100throw new ArgumentException($"Invalid {nameof(imagePixelData)} buffer size.");
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.OnnxTransformer (2)
Microsoft.ML.SearchSpace (5)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.TestFramework (1)
Microsoft.ML.TestFrameworkCommon (4)
Microsoft.ML.TimeSeries (1)
Microsoft.ML.Tokenizers (28)
Microsoft.ML.Tokenizers.Tests (3)
Microsoft.ML.TorchSharp (11)
Microsoft.ML.Transforms (1)
Microsoft.NET.Build.Containers (17)
Microsoft.NET.Build.Extensions.Tasks (5)
Microsoft.NET.Build.Tasks (24)
Microsoft.NET.HostModel (21)
Microsoft.Net.Http.Headers (7)
Microsoft.NET.Sdk.WorkloadManifestReader (13)
Microsoft.Private.Windows.Core (41)
Microsoft.SourceLink.Common (1)
Microsoft.TemplateEngine.Abstractions (9)
Microsoft.TemplateEngine.Cli (28)
Microsoft.TemplateEngine.Core (2)
Microsoft.TemplateEngine.Edge (50)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (33)
Microsoft.TemplateEngine.Utils (2)
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.CommunicationUtilities (2)
Microsoft.TestPlatform.CoreUtilities (7)
Microsoft.TestPlatform.CrossPlatEngine (1)
Microsoft.TestPlatform.Extensions.BlameDataCollector (3)
Microsoft.TestPlatform.Filter.Source (2)
Microsoft.TestPlatform.PlatformAbstractions (1)
Microsoft.VisualBasic.Core (2)
Microsoft.VisualStudio.TestPlatform.Common (6)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (2)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
Microsoft.VisualStudio.TestPlatform.ObjectModel (11)
Microsoft.Web.Xdt.Extensions (4)
Microsoft.Win32.Registry (22)
Microsoft\Win32\RegistryKey.cs (19)
302throw new ArgumentException(SR.Arg_RegSubKeyAbsent);
315throw new ArgumentException(SR.Arg_RegSubKeyAbsent);
335throw new ArgumentException(SR.Arg_RegKeyDelHive);
370throw new ArgumentException(SR.Arg_RegSubKeyAbsent);
396throw new ArgumentException(SR.Arg_RegSubKeyValueAbsent);
455throw new ArgumentException(SR.Arg_RegKeyOutOfRange);
475throw new ArgumentException(SR.Arg_DllInitFailure);
482throw new ArgumentException(SR.Format(SR.Arg_RegKeyNoRemoteConnect, machineName));
981throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, (int)options), nameof(options));
1239throw new ArgumentException(SR.Arg_RegValStrLenBug, nameof(name));
1244throw new ArgumentException(SR.Arg_RegBadKeyKind, nameof(valueKind));
1290throw new ArgumentException(SR.Arg_RegSetStrArrNull);
1359throw new ArgumentException(SR.Arg_RegSetMismatchedKind);
1393throw new ArgumentException(SR.Format(SR.Arg_RegSetBadArrType, value.GetType().Name));
1517throw new ArgumentException(SR.Arg_RegKeyStrLenBug, nameof(name));
1525throw new ArgumentException(SR.Arg_RegKeyStrLenBug, nameof(name));
1533throw new ArgumentException(SR.Argument_InvalidRegistryKeyPermissionCheck, nameof(mode));
1541throw new ArgumentException(SR.Argument_InvalidRegistryOptionsCheck, nameof(options));
1549throw new ArgumentException(SR.Argument_InvalidRegistryViewCheck, nameof(view));
Microsoft.Win32.SystemEvents (1)
Mono.Cecil (47)
Mono.Cecil.Mdb (3)
Mono.Cecil.Pdb (5)
Mono.Cecil.Rocks (4)
MSBuild (1)
MyFrontend (1)
NuGet.Build.Tasks (5)
NuGet.Build.Tasks.Console (2)
NuGet.Build.Tasks.Pack (2)
NuGet.CommandLine.XPlat (31)
NuGet.Commands (47)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (4)
871throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id));
882throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_OnlyExactVersionsAreAllowed, id, versionRange.OriginalString));
1148throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Invalid_AttributeValue, "SdkAnalysisLevel", sdkAnalysisLevel, "9.0.100"));
1163throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Invalid_AttributeValue, "UsingMicrosoftNETSdk", usingMicrosoftNETSdk, "false"));
TrustedSignersCommand\TrustedSignerActionsProvider.cs (9)
48throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(name));
90throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(name));
95throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_UnsupportedTrustTarget, trustTarget.ToString()));
100throw new ArgumentException(Strings.Error_TrustedAuthorNoOwners);
169throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(name));
174throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(fingerprint));
179throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedHashAlgorithm, hashAlgorithm.ToString()));
224throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(name));
271throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(serviceIndex));
NuGet.Common (19)
NuGet.Configuration (60)
NuGet.Frameworks (8)
NuGet.LibraryModel (1)
NuGet.PackageManagement (27)
NuGet.Packaging (68)
NuGet.ProjectModel (6)
NuGet.Protocol (125)
NuGet.Versioning (5)
PresentationBuildTasks (14)
PresentationCore (678)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (22)
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));
450throw new ArgumentException();
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));
773throw new ArgumentException(SR.InvalidGuid);
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));
949throw new ArgumentException(SR.InvalidDataInISF, ex);
954throw new ArgumentException(SR.InvalidDataInISF, ex);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (60)
133throw new ArgumentException(SR.IsfOperationFailed, ex);
138throw new ArgumentException(SR.IsfOperationFailed, ex);
143throw new ArgumentException(SR.IsfOperationFailed, ex);
148throw new ArgumentException(SR.IsfOperationFailed, ex);
153throw new ArgumentException(SR.IsfOperationFailed, ex);
158throw new ArgumentException(SR.IsfOperationFailed, ex);
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));
342throw new ArgumentException(SR.InvalidStream);
361throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
385throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), nameof(inputStream));
472throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
506throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
569throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
582throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
604throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
618throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
667throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
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");
765throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
780throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
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));
1210throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid argument passed to ReliableRead"));
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));
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (15)
813return new System.ArgumentException(SR.Image_PropertyNotFound, exceptionForHR);
819return new System.ArgumentException(SR.Image_PropertySize, exceptionForHR);
831return new System.ArgumentException(SR.Image_TooManyScanlines, exceptionForHR);
837return new System.ArgumentException(SR.Image_BadDimensions, exceptionForHR);
851return new System.ArgumentException(SR.Image_FrameMissing, exceptionForHR);
854return new System.ArgumentException(SR.Image_BadMetadataHeader, exceptionForHR);
857return new System.ArgumentException(SR.Image_BadStreamData, exceptionForHR);
869return new System.ArgumentException(SR.Image_SizeOutOfRange, exceptionForHR);
899return new System.ArgumentException(SR.Image_InsufficientBuffer, exceptionForHR);
902return new System.ArgumentException(SR.Format(SR.Media_InvalidArgument, null), exceptionForHR);
945return new System.ArgumentException(SR.D3DImage_InvalidUsage, exceptionForHR);
947return new System.ArgumentException(SR.D3DImage_SurfaceTooBig, exceptionForHR);
949return new System.ArgumentException(SR.D3DImage_InvalidPool, exceptionForHR);
951return new System.ArgumentException(SR.D3DImage_InvalidDevice, exceptionForHR);
953return new System.ArgumentException(SR.D3DImage_AARequires9Ex, exceptionForHR);
System\Windows\Generated\ContentElement.cs (8)
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));
82throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
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));
147throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
521throw new ArgumentException(SR.HandlerTypeIllegal);
576throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Generated\UIElement.cs (8)
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));
82throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
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));
147throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
521throw new ArgumentException(SR.HandlerTypeIllegal);
576throw new ArgumentException(SR.HandlerTypeIllegal);
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 (6)
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));
81throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
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));
146throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
System\Windows\Media\CharacterMetricsDictionary.cs (11)
121throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
139throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
178throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
181throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
196throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional);
201throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType));
363throw new ArgumentException(SR.Format(SR.CollectionDuplicateKey, key));
492throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, s, "int"), nameof(key));
500throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), "int"), nameof(key));
504throw new ArgumentException(SR.Format(SR.CodePointOutOfRange, value), nameof(key));
517throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CharacterMetrics), value.GetType()));
System\Windows\Media\CultureSpecificStringDictionary.cs (8)
113throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
116throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
147throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
150throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
165throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional);
170throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType));
312throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(string)), nameof(value));
325throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), typeof(XmlLanguage)), nameof(key));
System\Windows\Media\FamilyMapCollection.cs (7)
77throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
80throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
91throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional);
95throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface), elementType));
98throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
101throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
367throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FontFamilyMap)));
System\Windows\Media\GlyphRun.cs (13)
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));
415throw new ArgumentException(SR.SidewaysRTLTextIsNotSupported);
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 (6)
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));
81throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
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));
146throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
PresentationFramework (486)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (11)
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));
303throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute));
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));
497throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
503throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
System\Windows\Application.cs (12)
352throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString"));
355throw new ArgumentException(SR.AbsoluteUriNotAllowed);
442throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString"));
445throw new ArgumentException(SR.AbsoluteUriNotAllowed);
579throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriResource", "OriginalString"));
583throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed);
611throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriContent", "OriginalString"));
615throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed);
640throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriRemote", "OriginalString"));
646throw new ArgumentException(SR.NonPackSooAbsoluteUriNotAllowed);
971throw new ArgumentException(string.Format("ThemeMode value {0} is invalid. Use None, System, Light or Dark", value));
1687throw new ArgumentException(SR.Format(SR.WindowPassedShouldBeOnApplicationThread, window.GetType().FullName, this.GetType().FullName));
System\Windows\Controls\ColumnDefinition.cs (9)
78throw new ArgumentException(SR.GridCollection_DestArrayInvalidRank);
86throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array"));
108throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array"));
313throw new ArgumentException(SR.TableCollectionRangeOutOfRange);
516throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, nameof(Grid), nameof(ColumnDefinitionCollection)));
540throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, nameof(ColumnDefinitionCollection), nameof(Grid)));
593throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "ColumnDefinitionCollection", "ColumnDefinition"));
598throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, "value", "ColumnDefinitionCollection"));
614throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "ColumnDefinitionCollection", "ColumnDefinition"));
System\Windows\Controls\RowDefinition.cs (9)
73throw new ArgumentException(SR.GridCollection_DestArrayInvalidRank);
81throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array"));
103throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array"));
308throw new ArgumentException(SR.TableCollectionRangeOutOfRange);
511throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, nameof(Grid), nameof(RowDefinitionCollection)));
535throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, nameof(RowDefinitionCollection), nameof(Grid)));
588throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "RowDefinitionCollection", "RowDefinition"));
593throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, "value", "RowDefinitionCollection"));
609throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "RowDefinitionCollection", "RowDefinition"));
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\TextElement.cs (6)
100throw new ArgumentException(SR.TextElement_UnmatchedEndPointer);
123throw new ArgumentException(SR.Format(SR.InDifferentScope, "start", "end"));
808throw new ArgumentException(SR.Format(SR.TextSchema_ThisInlineUIContainerHasAChildUIElementAlready, this.GetType().Name, ((InlineUIContainer)this).Child.GetType().Name, value.GetType().Name));
820throw new ArgumentException(SR.Format(SR.TextSchema_ThisBlockUIContainerHasAChildUIElementAlready, this.GetType().Name, ((BlockUIContainer)this).Child.GetType().Name, value.GetType().Name));
836throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name));
843throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name));
System\Windows\Documents\TextElementCollection.cs (11)
253throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name));
292throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name));
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));
463throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name));
564throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), nameof(value));
602throw new ArgumentException("array");
609throw new ArgumentException("arrayIndex");
614throw new ArgumentException(SR.Format(SR.TextElementCollection_CannotCopyToArrayNotSufficientMemory, count, arrayIndex, array.Length));
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 (3)
ReachFramework (20)
ResultsOfTGenerator (1)
Roslyn.Diagnostics.Analyzers (51)
Roslyn.Diagnostics.CSharp.Analyzers (10)
rzc (7)
ScenarioTests.Common.Tests (1)
Shared (4)
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 (84)
System\Collections\Generic\OrderedDictionary.cs (25)
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));
1210throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
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));
1298throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
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));
1541throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
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));
1850throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
1863throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
1873throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System\Collections\Generic\SortedDictionary.cs (15)
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));
542throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
554throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
559throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
566throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
582throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
703throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
715throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
720throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
727throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
743throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
896throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, item));
System\Collections\Generic\SortedList.cs (15)
167throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, keys[i]));
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));
442throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
458throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
463throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
473throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
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 (13)
System.Collections.Immutable (24)
System.Collections.NonGeneric (10)
System.Collections.Specialized (9)
System.CommandLine (8)
System.ComponentModel.Annotations (7)
System.ComponentModel.Composition (35)
System\ComponentModel\Composition\ExceptionBuilder.cs (10)
25return new ArgumentException(message, parameterName);
41throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(memberName)), nameof(memberName));
55throw new ArgumentException(SR.ArgumentException_EmptyString);
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.TypeConverter (73)
System.Composition.Convention (12)
System.Composition.Hosting (2)
System.Configuration.ConfigurationManager (48)
System\Configuration\ConfigurationElementCollection.cs (7)
48throw new ArgumentException(SR.Format(SR.Item_name_reserved, DefaultAddItemName, value));
58throw new ArgumentException(SR.Format(SR.Item_name_reserved, DefaultRemoveItemName, value));
69throw new ArgumentException(SR.Format(SR.Item_name_reserved, DefaultClearItemsName, value));
625throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved, ElementName));
1061throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved,
1138throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved, elementName));
1150throw new ArgumentException(SR.Format(SR.Basicmap_item_name_reserved, elementName));
System.Console (3)
System.Data.Common (16)
System.Data.Odbc (7)
System.Data.OleDb (8)
System\Data\Common\AdapterUtil.cs (8)
66ArgumentException e = new ArgumentException(error);
72ArgumentException e = new ArgumentException(error, inner);
78ArgumentException e = new ArgumentException(error, parameter);
84ArgumentException e = new ArgumentException(error, parameter, inner);
173ArgumentException e = new ArgumentException(SR.GetString(SR.ADP_InvalidMultipartName, SR.GetString(property), value));
180ArgumentException e = new ArgumentException(SR.GetString(SR.ADP_InvalidMultipartNameQuoteUsage, SR.GetString(property), value));
187ArgumentException e = new ArgumentException(SR.GetString(SR.ADP_InvalidMultipartNameToManyParts, SR.GetString(property), value, limit));
721e = new ArgumentException(message, inner);
System.Diagnostics.DiagnosticSource (7)
System.Diagnostics.EventLog (31)
System\Diagnostics\EventLog.cs (18)
256throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName));
262throw new ArgumentException(SR.BadLogName);
264throw new ArgumentException(SR.Format(SR.MissingParameter, nameof(source)));
266throw new ArgumentException(SR.Format(SR.ParameterTooLong, nameof(source), 254 - EventLogKey.Length));
275throw new ArgumentException(SR.Format(SR.LocalSourceAlreadyExists, source));
277throw new ArgumentException(SR.Format(SR.SourceAlreadyExists, source, machineName));
308throw new ArgumentException(SR.Format(SR.InvalidCustomerLogName, logName));
318throw new ArgumentException(SR.Format(SR.LocalLogAlreadyExistsAsSource, logName));
320throw new ArgumentException(SR.Format(SR.LogAlreadyExistsAsSource, logName, machineName));
366throw new ArgumentException(SR.Format(SR.InvalidParameterFormat, nameof(machineName)), nameof(machineName));
368throw new ArgumentException(SR.NoLogName);
441throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName));
456throw new ArgumentException(SR.Format(SR.LocalSourceNotRegistered, source));
458throw new ArgumentException(SR.Format(SR.SourceNotRegistered, source, machineName, "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\EventLog"));
503throw new ArgumentException(SR.Format(SR.InvalidParameterFormat, nameof(machineName)));
626throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName));
732throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName));
1061throw new ArgumentException(SR.Format(SR.ParameterTooLong, nameof(source), 254 - EventLogKey.Length));
System\Diagnostics\EventLogInternal.cs (13)
110throw new ArgumentException(SR.BadLogName);
113throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(machineName), machineName));
851throw new ArgumentException(SR.Format(SR.IndexOutOfBounds, index.ToString()));
1061throw new ArgumentException(SR.MissingLogProperty);
1097throw new ArgumentException(SR.NeedSourceToOpen);
1277throw new ArgumentException(SR.Format(SR.LogSourceMismatch, Source, currentLogName, rightLogName));
1294throw new ArgumentException(SR.Format(SR.LogSourceMismatch, Source, currentLogName, rightLogName));
1304throw new ArgumentException(SR.Format(SR.EventID, eventID.ToString(), 0, ushort.MaxValue));
1307throw new ArgumentException(SR.NeedSourceToWrite);
1330throw new ArgumentException(SR.NeedSourceToWrite);
1359throw new ArgumentException(SR.TooManyReplacementStrings);
1368throw new ArgumentException(SR.LogEntryTooLong);
1373throw new ArgumentException(SR.NeedSourceToWrite);
System.Diagnostics.PerformanceCounter (35)
System.Diagnostics.Process (10)
System.Diagnostics.TraceSource (5)
System.DirectoryServices (248)
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 (16)
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));
99throw new ArgumentException(SR.NotWithinSite);
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));
207throw new ArgumentException(SR.Format(SR.AlreadyExistingInCollection, 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 (51)
System.DirectoryServices.Protocols (76)
System\DirectoryServices\Protocols\common\DirectoryAttribute.cs (18)
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));
291set => List[index] = value ?? throw new ArgumentException(SR.NullDirectoryAttributeCollection);
298throw new ArgumentException(SR.NullDirectoryAttributeCollection);
312throw new ArgumentException(SR.NullDirectoryAttributeCollection);
340throw new ArgumentException(SR.NullDirectoryAttributeCollection);
352throw new ArgumentException(SR.NullDirectoryAttributeCollection);
356throw new ArgumentException(SR.Format(SR.InvalidValueType, nameof(DirectoryAttribute)), nameof(value));
370set => List[index] = value ?? throw new ArgumentException(SR.NullDirectoryAttributeCollection);
377throw new ArgumentException(SR.NullDirectoryAttributeCollection);
391throw new ArgumentException(SR.NullDirectoryAttributeCollection);
419throw new ArgumentException(SR.NullDirectoryAttributeCollection);
431throw new ArgumentException(SR.NullDirectoryAttributeCollection);
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 (89)
System\Drawing\Font.cs (9)
206throw new ArgumentException(message: null, nameof(graphics));
281throw new ArgumentException(null, nameof(logFont));
352throw new ArgumentException(SR.Format(SR.GdiplusFontStyleNotFound, _fontFamily.Name, _fontStyle.ToString()));
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));
596throw new ArgumentException(SR.GdiplusNotTrueTypeFont_NoName);
606throw new ArgumentException(SR.Format(SR.GdiplusNotTrueTypeFont, logFont.AsString()));
638throw new ArgumentException(null, nameof(lf));
662throw new ArgumentException(SR.GdiplusNotTrueTypeFont_NoName);
System\Drawing\Icon.cs (8)
48throw new ArgumentException(SR.Format(SR.InvalidGDIHandle, nameof(Icon)));
100?? throw new ArgumentException(SR.Format(SR.ResourceNotFound, type, resource));
155throw new ArgumentException(SR.NullOrEmptyPath, nameof(filePath));
396throw new ArgumentException(null, nameof(handle));
417throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon)));
451throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon)));
516throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon)));
536throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon)));
System\Drawing\Pen.cs (20)
116throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
148throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
163throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
209throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
251throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
275throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
300throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
330throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
359throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
383throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
412throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
436throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
554throw new ArgumentException(SR.GdiplusInvalidParameter);
570throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
630throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
668throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
721throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
774throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
779throw new ArgumentException(SR.InvalidDashPattern);
817throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
System\Drawing\Printing\PrinterSettings.cs (7)
59throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0));
113throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0));
218throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0));
235throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0));
423throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0));
987throw new ArgumentException(SR.Format(SR.InvalidPrinterHandle, hdevmode));
1032throw new ArgumentException(SR.Format(SR.InvalidPrinterHandle, hdevnames));
System.Drawing.Primitives (4)
System.Formats.Asn1 (27)
System.Formats.Cbor (5)
System.Formats.Nrbf (1)
System.Formats.Tar (21)
System.IO.Compression (26)
System.IO.Compression.Brotli (3)
System.IO.Compression.ZipFile (10)
System.IO.FileSystem.AccessControl (7)
System.IO.FileSystem.DriveInfo (2)
System.IO.FileSystem.Watcher (5)
System\IO\FileSystemWatcher.cs (5)
116throw new ArgumentException(SR.Format(SR.InvalidEnumArgument, nameof(value), (int)value, nameof(NotifyFilters)));
243throw new ArgumentException(SR.Format(SR.InvalidDirName, value), nameof(Path));
246throw new ArgumentException(SR.Format(SR.InvalidDirName_NotExists, value), nameof(Path));
365throw new ArgumentException(SR.Format(SR.InvalidDirName, path), nameof(path));
368throw new ArgumentException(SR.Format(SR.InvalidDirName_NotExists, path), nameof(path));
System.IO.Hashing (1)
System.IO.IsolatedStorage (4)
System.IO.MemoryMappedFiles (11)
System.IO.Packaging (39)
System.IO.Pipes (8)
System.IO.Ports (17)
System.Linq (1)
System.Linq.AsyncEnumerable (1)
System.Linq.Expressions (118)
System\Linq\Expressions\Error.cs (115)
19return new ArgumentException(Strings.ReducibleMustOverrideReduce);
26return new ArgumentException(Strings.ArgCntMustBeGreaterThanNameCnt);
47return new ArgumentException(Strings.SameKeyExistsInExpando(key), nameof(key));
75return new ArgumentException(Strings.MustReduceToDifferent);
117return new ArgumentException(Strings.ReducedNotCompatible);
124return new ArgumentException(Strings.SetterHasNoParams, paramName);
131return new ArgumentException(Strings.PropertyCannotHaveRefType, paramName);
138return new ArgumentException(Strings.IndexesOfSetGetMustMatch, paramName);
152return new ArgumentException(Strings.FirstArgumentMustBeCallSite);
159return new ArgumentException(Strings.AccessorsCannotHaveVarArgs, paramName);
166return new ArgumentException(Strings.AccessorsCannotHaveByRefArgs, paramName);
180return new ArgumentException(Strings.TypeMustBeDerivedFromSystemDelegate);
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);
261return new ArgumentException(Strings.OnlyStaticMethodsHaveNullInstance);
268return new ArgumentException(Strings.PropertyTypeCannotBeVoid, paramName);
275return new ArgumentException(Strings.InvalidUnboxType, paramName);
282return new ArgumentException(Strings.ExpressionMustBeWriteable, paramName);
289return new ArgumentException(Strings.ArgumentMustNotHaveValueType, paramName);
296return new ArgumentException(Strings.MustBeReducible);
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);
373return new ArgumentException(Strings.StartEndMustBeOrdered);
380return new ArgumentException(Strings.FaultCannotHaveCatchOrFinally, paramName);
387return new ArgumentException(Strings.TryMustHaveCatchFinallyOrFault);
394return new ArgumentException(Strings.BodyOfCatchMustHaveSameTypeAsBodyOfTry);
408return new ArgumentException(Strings.UserDefinedOperatorMustBeStatic(p0), paramName);
415return new ArgumentException(Strings.UserDefinedOperatorMustNotBeVoid(p0), paramName);
471return new ArgumentException(Strings.ArgumentTypeCannotBeVoid);
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);
570return new ArgumentException(Strings.ArgumentTypesMustMatch);
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);
649return new ArgumentException(Strings.ExpressionTypeDoesNotMatchReturn(p0, p1));
656return new ArgumentException(Strings.ExpressionTypeDoesNotMatchAssignment(p0, p1));
663return new ArgumentException(Strings.ExpressionTypeDoesNotMatchLabel(p0, p1));
670return new ArgumentException(Strings.ExpressionTypeNotInvocable(p0), paramName);
677return new ArgumentException(Strings.FieldNotDefinedForType(p0, p1));
684return new ArgumentException(Strings.InstanceFieldNotDefinedForType(p0, p1));
691return new ArgumentException(Strings.FieldInfoNotDefinedForType(p0, p1, p2));
698return new ArgumentException(Strings.IncorrectNumberOfIndexes);
705return new ArgumentException(Strings.IncorrectNumberOfLambdaDeclarationParameters);
713return new ArgumentException(Strings.IncorrectNumberOfMembersForGivenConstructor);
720return new ArgumentException(Strings.IncorrectNumberOfArgumentsForMembers);
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);
820return new ArgumentException(Strings.ParameterExpressionNotValidAsDelegate(p0, p1));
827return new ArgumentException(Strings.PropertyNotDefinedForType(p0, p1), paramName);
834return new ArgumentException(Strings.InstancePropertyNotDefinedForType(p0, p1), paramName);
841return new ArgumentException(Strings.InstancePropertyWithoutParameterNotDefinedForType(p0, p1));
848return new ArgumentException(Strings.InstancePropertyWithSpecifiedParametersNotDefinedForType(p0, p1, p2), paramName);
855return new ArgumentException(Strings.InstanceAndMethodTypeMismatch(p0, p1, p2));
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);
914return new ArgumentException(Strings.UnhandledBinding);
921return new ArgumentException(Strings.UnhandledBindingType(p0));
929return new ArgumentException(Strings.UnhandledUnary(p0), paramName);
936return new ArgumentException(Strings.UnknownBindingType, $"bindings[{index}]");
943return new ArgumentException(Strings.UserDefinedOpMustHaveConsistentTypes(p0, p1));
950return new ArgumentException(Strings.UserDefinedOpMustHaveValidReturnType(p0, p1));
957return new ArgumentException(Strings.LogicalOperatorMustHaveBooleanOperators(p0, p1));
992return new ArgumentException(Strings.IncorrectNumberOfTypeArgsForFunc, paramName);
999return new ArgumentException(Strings.IncorrectNumberOfTypeArgsForAction, paramName);
1006return new ArgumentException(Strings.ArgumentCannotBeOfTypeVoid, paramName);
1172return new ArgumentException(Strings.TestValueTypeDoesNotMatchComparisonMethodParameter(p0, p1));
1179return new ArgumentException(Strings.SwitchValueTypeDoesNotMatchComparisonMethodParameter(p0, p1));
1213return new ArgumentException(Strings.NonStaticConstructorRequired, paramName);
1245return new ArgumentException(Strings.TypeContainsGenericParameters(p0), paramName);
1261return new ArgumentException(Strings.TypeIsGeneric(p0), paramName);
1277return new ArgumentException(Strings.IncorrectNumberOfConstructorArguments);
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.Linq.Parallel (3)
System.Linq.Queryable (2)
System.Management (46)
System\Management\ManagementQuery.cs (42)
121throw new ArgumentException(SR.InvalidQueryDuplicatedToken); // Invalid query - duplicate token
130throw new ArgumentException(SR.InvalidQuery); // Invalid query
137throw new ArgumentException(SR.InvalidQueryNullToken); // Invalid query - token has no value
152throw new ArgumentException(SR.InvalidQueryDuplicatedToken); // Invalid query - duplicate token
678throw new ArgumentException(SR.InvalidQuery, nameof(queryOrClassName));
750throw new ArgumentException(SR.InvalidQuery, nameof(isSchemaQuery));
1008throw new ArgumentException(SR.InvalidQuery);
1016throw new ArgumentException(SR.InvalidQuery);
1023throw new ArgumentException(SR.InvalidQuery);
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));
1078throw new ArgumentException(SR.InvalidQuery); // Invalid 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
1653throw new ArgumentException(SR.InvalidQuery); // Invalid query
1659throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, TokenOf), nameof(query)); // Invalid query
1666throw new ArgumentException(SR.InvalidQuery); // Invalid query
1673throw new ArgumentException(SR.InvalidQuery); // Invalid query
1683throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, TokenWhere), nameof(query)); // Invalid query
1689throw new ArgumentException(SR.InvalidQuery); // Invalid query
1731throw new ArgumentException(SR.InvalidQuery); // Unrecognized token
1736throw new ArgumentException(SR.InvalidQuery);
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
2170throw new ArgumentException(SR.InvalidQuery); // Invalid query
2176throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, TokenOf), nameof(query)); // Invalid query
2183throw new ArgumentException(SR.InvalidQuery); // Invalid query
2190throw new ArgumentException(SR.InvalidQuery); // Invalid query
2200throw new ArgumentException(SR.Format(SR.InvalidQueryTokenExpected, TokenWhere), nameof(query)); // Invalid query
2206throw new ArgumentException(SR.InvalidQuery); // Invalid query
2239throw new ArgumentException(SR.InvalidQuery); // Unrecognized token
2244throw new ArgumentException(SR.InvalidQuery);
2490throw new ArgumentException(SR.InvalidQuery, nameof(queryOrEventClassName));
3034throw new ArgumentException(SR.InvalidQuery);
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 (9)
System.Net.Http.Json (1)
System.Net.Http.WinHttpHandler (2)
System.Net.HttpListener (16)
System.Net.Mail (5)
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 (16)
System.Net.ServerSentEvents (2)
System.Net.Sockets (44)
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.WebClient (1)
System.Net.WebHeaderCollection (7)
System.Net.WebSockets (9)
System.Net.WebSockets.Client (8)
System.Numerics.Tensors (36)
System\ThrowHelper.cs (32)
16throw new ArgumentException(SR.Argument_DestinationTooShort, destinationName);
20throw new ArgumentException(SR.Argument_SpansMustHaveSameLength);
24throw new ArgumentException(SR.Argument_SpansMustBeNonEmpty);
28throw new ArgumentException(SR.Argument_InputAndDestinationSpanMustNotOverlap, "destination");
48throw new ArgumentException(SR.Argument_DestinationSpansMustNotOverlap);
65throw new ArgumentException(SR.Format(SR.Argument_TypeContainsReferences, targetType));
94throw new ArgumentException(SR.ThrowArgument_IndicesLengthMustEqualRank);
98return new ArgumentException(message);
110throw new ArgumentException(SR.ThrowArgument_FilterTensorMustEqualTensorLength);
116throw new ArgumentException(SR.ThrowArgument_SetSliceNoRange, paramNames);
122throw new ArgumentException(SR.ThrowArgument_SetSliceInvalidShapes, paramNames);
128throw new ArgumentException(SR.ThrowArgument_LengthsNotCompatible);
134throw new ArgumentException(SR.ThrowArgument_SplitNotSplitEvenly);
140throw new ArgumentException(SR.ThrowArgument_DimensionsNotSame, paramNames);
146throw new ArgumentException(SR.ThrowArgument_1DTensorRequired, paramNames);
152throw new ArgumentException(SR.Argument_2DTensorRequired, paramNames);
158throw new ArgumentException(SR.ThrowArgument_IncorrectNumberOfFilterItems, paramNames);
164throw new ArgumentException(SR.ThrowArgument_StackTooFewTensors);
170throw new ArgumentException(SR.ThrowArgument_OnlyOneWildcard);
176throw new ArgumentException(SR.ThrowArgument_InvalidReshapeDimensions);
182throw new ArgumentException(SR.ThrowArgument_AxisLargerThanRank);
188throw new ArgumentException(SR.ThrowArgument_InvalidSqueezeAxis);
194throw new ArgumentException(SR.ThrowArgument_ConcatenateTooFewTensors);
200throw new ArgumentException(SR.ThrowArgument_InvalidDimension);
206throw new ArgumentException(SR.ThrowArgument_InvalidConcatenateShape);
212throw new ArgumentException(SR.ThrowArgument_TransposeTooFewDimensions);
218throw new ArgumentException(SR.ThrowArgument_PermuteAxisOrder);
224throw new ArgumentException(SR.ThrowArgument_InPlaceInvalidShape);
230throw new ArgumentException(SR.ThrowArgument_InvalidStridesAndLengths);
248throw new ArgumentException(SR.Format(SR.Argument_IncompatibleDimensions, leftDim, rightDim));
254throw new ArgumentException(SR.ThrowArgument_StackShapesNotSame);
260throw new ArgumentException(SR.Argument_CannotReshapeNonContiguousOrDense);
System.ObjectModel (16)
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 (830)
Internal\Reflection\Augments\ReflectionAugments.cs (23)
121throw new ArgumentException(SR.Argument_InvalidHandle);
125throw new ArgumentException(SR.Format(SR.Argument_MethodDeclaringTypeGeneric, methodBase, methodBase.DeclaringType.GetGenericTypeDefinition()));
142throw new ArgumentException(SR.Argument_InvalidHandle);
144throw new ArgumentException(SR.Format(SR.Argument_ResolveMethodHandle,
165throw new ArgumentException(SR.Argument_InvalidHandle);
169throw new ArgumentException(SR.Format(SR.Argument_FieldDeclaringTypeGeneric, fieldInfo));
185throw new ArgumentException(SR.Argument_InvalidHandle);
187throw new ArgumentException(SR.Format(SR.Argument_ResolveFieldHandle,
264throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type));
267throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(method));
272throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type));
278throw new ArgumentException(SR.Arg_DlgtTargMeth);
293throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type));
297throw new ArgumentException(SR.Arg_MustBeDelegate);
304throw new ArgumentException(SR.Arg_DlgtTargMeth);
316throw new ArgumentException(SR.Arg_UnboundGenParam, nameof(target));
320throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type));
323throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(target));
328throw new ArgumentException(SR.Arg_MustBeDelegate);
334throw new ArgumentException(SR.Arg_DlgtTargMeth);
405throw new ArgumentException(SR.Arg_ArrayZeroError, nameof(flds));
412throw new ArgumentException(SR.Argument_MustBeRuntimeFieldInfo);
414throw new ArgumentException(SR.Argument_TypedReferenceInvalidField);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (9)
404throw new ArgumentException(SR.Format(SR.Argument_EnumTypeDoesNotMatch, flag.GetType(), GetType()));
887throw new ArgumentException(SR.Arg_MustBeEnum, nameof(TEnum));
1121throw new ArgumentException(SR.Format(SR.Arg_EnumValueNotFound, originalValue.ToString()));
1290throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, target.GetType(), GetType()));
1637throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, rtType));
1650throw new ArgumentException(SR.Format(SR.Arg_EnumFormatUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType));
2148throw new ArgumentException(enumType is not RuntimeType ? SR.Arg_MustBeType : SR.Arg_MustBeEnum, nameof(enumType));
2151throw new ArgumentException(SR.Arg_MustContainEnumInfo, "value");
2221throw new ArgumentException(SR.Arg_MustBeEnumBaseTypeOrEnum, nameof(value));
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 (7)
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));
54throw new ArgumentException(SR.Argument_NoRegionInvariantCulture);
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 (16)
92throw new ArgumentException(SR.Arg_EmptyArray, nameof(names));
130throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeOptionalCustomModifiers), nameof(parameterTypes)));
133throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeRequiredCustomModifiers), nameof(parameterTypes)));
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 (15)
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));
744return new System.ArgumentException();
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 (18)
83throw new ArgumentException(SR.Format(SR.Argument_TypeContainsReferences, targetType));
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);
125throw new ArgumentException(SR.Argument_OverlapAlignmentMismatch);
143throw new ArgumentException(SR.Format(SR.ArgumentException_ValueTupleIncorrectType, obj.GetType()), "other");
163throw new ArgumentException(SR.Format(SR.Arg_BogusIComparer, comparer));
284throw new ArgumentException(SR.Arg_CannotBeNaN);
290throw new ArgumentException(SR.Arg_CannotBeNaN, GetArgumentName(argument));
309return new ArgumentException(SR.Format(SR.Argument_AddingDuplicateWithKey, key));
512throw new ArgumentException(SR.Argument_IncompatibleArrayType);
518throw new ArgumentException(SR.Arg_InvalidHandle, paramName);
715return new ArgumentException(SR.Argument_InvalidOffLen);
720return new ArgumentException(GetResourceString(resource));
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 (9)
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));
1128throw new ArgumentException(SR.ArgumentException_TupleLastArgumentNotATuple);
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 (14)
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));
184throw new ArgumentException(SR.Arg_IndexMustBeInt);
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\RuntimeType.NativeAot.cs (11)
95throw new ArgumentException(SR.Arg_MustBeEnumBaseTypeOrEnum, nameof(value));
101throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
109throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
120throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
143throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
161throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, value.GetType(), Enum.InternalGetUnderlyingType(this)));
169throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, value.GetType(), this));
175throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, value.GetType(), underlyingType));
186throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
205throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
325return pEEType->IsArray ? pEEType->ArrayRank : throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (58)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (13)
511throw new ArgumentException(SR.Format(SR.JsonNamespaceMustBeEmpty, _attributeText));
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 (23)
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));
272throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xmlns", ns));
274throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xml", ns));
334throw new ArgumentException(SR.Format(SR.XmlInvalidXmlSpace, _attributeValue));
398throw new ArgumentException(SR.Format(SR.XmlInvalidXmlSpace, _attributeValue));
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));
2169throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xmlns", uri));
2172throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xml", uri));
System.Private.Reflection.Execution (9)
System.Private.TypeLoader (5)
System.Private.Uri (8)
System.Private.Windows.Core (50)
System.Private.Windows.Core.TestUtilities (3)
System.Private.Windows.GdiPlus (1)
System.Private.Xml (180)
System\Xml\Core\XmlWellFormedWriter.cs (23)
342throw new ArgumentException(SR.Xml_NoRoot);
390throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(pubid, i)), nameof(pubid));
397throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(sysid, i)), nameof(sysid));
404throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(subset, i)), nameof(subset));
445throw new ArgumentException(SR.Xml_PrefixForEmptyNs);
610throw new ArgumentException(SR.Xml_EmptyLocalName);
645throw new ArgumentException(SR.Xml_XmlnsPrefix);
668throw new ArgumentException(SR.Xml_XmlnsPrefix);
678throw new ArgumentException(SR.Xml_XmlPrefix);
775throw new ArgumentException(SR.Xml_PrefixForEmptyNs);
779throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace);
822throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value));
897throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? SR.Xml_DupXmlDecl : SR.Xml_CannotWriteXmlDecl);
957throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar);
1010throw new ArgumentException(SR.Xml_NonWhitespace);
1291throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
1613throw new ArgumentException(SR.Xml_XmlPrefix);
1623throw new ArgumentException(SR.Xml_XmlnsPrefix);
1640throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix));
1724throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix));
1732throw new ArgumentException(SR.Xml_XmlPrefix);
1737throw new ArgumentException(SR.Xml_XmlnsPrefix);
2064return new ArgumentException(SR.Format(SR.Xml_InvalidNameCharsDetail, args));
System\Xml\Core\XmlWellFormedWriterAsync.cs (16)
45throw new ArgumentException(SR.Xml_NoRoot);
94throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(pubid, i)), nameof(pubid));
101throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(sysid, i)), nameof(sysid));
108throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(subset, i)), nameof(subset));
221throw new ArgumentException(SR.Xml_PrefixForEmptyNs);
453throw new ArgumentException(SR.Xml_EmptyLocalName);
506throw new ArgumentException(SR.Xml_XmlnsPrefix);
529throw new ArgumentException(SR.Xml_XmlnsPrefix);
539throw new ArgumentException(SR.Xml_XmlPrefix);
683throw new ArgumentException(SR.Xml_PrefixForEmptyNs);
687throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace);
729throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value));
801throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? SR.Xml_DupXmlDecl : SR.Xml_CannotWriteXmlDecl);
861throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar);
915throw new ArgumentException(SR.Xml_NonWhitespace);
1145throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\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 (26)
System.Reflection.Context (7)
System.Reflection.DispatchProxy (5)
System.Reflection.Emit (45)
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 (8)
34throw new ArgumentException(SR.Argument_DllNameCannotBeEmpty);
100throw new ArgumentException(SR.Argument_DllNameCannotBeEmpty);
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 (13)
281throw new ArgumentException(SR.Argument_BadSizeForData, nameof(data.Length));
308throw new ArgumentException(SR.ArgumentException_BadMethodImplBody);
317throw new ArgumentException(SR.Format(SR.Argument_MethodOverridden, methodInfoBody.Name, FullName), nameof(methodInfoDeclaration));
358new ArgumentException(SR.Format(SR.Argument_InvalidMethodOverride, FullName, methodName), "methodInfoBody");
373throw new ArgumentException(SR.Argument_BadPInvokeMethod);
378throw new ArgumentException(SR.Argument_BadPInvokeOnInterface);
390throw new ArgumentException(SR.Argument_MethodRedefined);
420throw new ArgumentException(SR.Argument_BadSizeForData, nameof(size));
541throw new ArgumentException(SR.Format(SR.Argument_UnknownNamedType, con.DeclaringType, name), nameof(binaryAttribute));
556throw new ArgumentException(SR.Argument_CannotSetParentToInterface);
622throw new ArgumentException(SR.Argument_MustBeEnum);
1310throw new ArgumentException(SR.Argument_MustBeInterface, nameof(interfaceType));
1315throw new ArgumentException(SR.Argument_InterfaceNotFound, nameof(interfaceType));
System.Reflection.Metadata (40)
System.Reflection.MetadataLoadContext (28)
System.Resources.Extensions (11)
System.Resources.Writer (4)
System.Runtime.Caching (19)
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\Caching\MemoryCache.cs (11)
233throw new ArgumentException(SR.Invalid_expiration_combination, nameof(policy));
242throw new ArgumentException(SR.Invalid_callback_combination, nameof(policy));
328throw new ArgumentException(SR.Empty_string_invalid, nameof(name));
332throw new ArgumentException(SR.Default_is_reserved, nameof(name));
346throw new ArgumentException(SR.Empty_string_invalid, nameof(name));
350throw new ArgumentException(SR.Default_is_reserved, nameof(name));
383throw new ArgumentException(SR.Update_callback_must_be_null, nameof(policy));
421throw new ArgumentException(RH.Format(SR.Empty_collection, nameof(keys)));
428throw new ArgumentException(RH.Format(SR.Collection_contains_null_element, nameof(keys)));
673throw new ArgumentException(SR.Invalid_argument_combination);
789throw new ArgumentException(RH.Format(SR.Collection_contains_null_element, nameof(keys)));
System.Runtime.InteropServices (4)
System.Runtime.InteropServices.JavaScript (4)
System.Runtime.Numerics (5)
System.Runtime.Serialization.Formatters (11)
System.Runtime.Serialization.Schema (1)
System.Security.AccessControl (42)
System.Security.Claims (1)
System.Security.Cryptography (340)
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 (17)
395throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(rawData));
413throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(rawData));
769throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
774throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
857throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
862throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
873throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
959throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
964throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
975throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
1055throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
1060throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
1075throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
1165throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm);
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 (48)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (6)
264throw new ArgumentException(SR.Format(SR.CoseHeaderMapHeaderDoesNotAcceptSpecifiedValue, label.LabelName), nameof(value));
290throw new ArgumentException(SR.Format(SR.CoseHeaderMapHeaderDoesNotAcceptSpecifiedValue, label.LabelName), nameof(value));
297throw new ArgumentException(SR.CriticalHeadersMustBeArrayOfAtLeastOne, nameof(value));
304throw new ArgumentException(SR.Format(SR.CoseHeaderMapHeaderDoesNotAcceptSpecifiedValue, label.LabelName), nameof(value));
311throw new ArgumentException(SR.Format(SR.CoseHeaderMapHeaderDoesNotAcceptSpecifiedValue, label.LabelName), nameof(value));
328throw new ArgumentException(SR.Format(SR.CoseHeaderMapArgumentCoseHeaderValueIncorrect, label.LabelName), nameof(value), ex);
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 (22)
System.Security.Cryptography.ProtectedData (2)
System.Security.Cryptography.Xml (34)
System.Security.Permissions (6)
System.Security.Principal.Windows (27)
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.Http (1)
System.ServiceModel.NetFramingBase (2)
System.ServiceModel.Primitives (65)
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 (10)
System.ServiceProcess.ServiceController (11)
System\ServiceProcess\ServiceController.cs (8)
66throw new ArgumentException(SR.Format(SR.BadMachineName, machineName));
71throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(name), name), nameof(name));
82throw new ArgumentException(SR.Format(SR.BadMachineName, machineName));
101throw new ArgumentException(SR.Format(SR.BadMachineName, machineName));
246throw new ArgumentException(SR.Format(SR.BadMachineName, value));
286throw new ArgumentException(SR.Format(SR.ServiceName, value, ServiceBase.MaxNameLength.ToString()));
736throw new ArgumentException(SR.Format(SR.BadMachineName, machineName));
983throw new ArgumentException(SR.Format(SR.InvalidEnumArgument, nameof(desiredStatus), (int)desiredStatus, typeof(ServiceControllerStatus)));
System.Speech (62)
Recognition\Grammar.cs (12)
51throw new ArgumentException(SR.Get(SRID.RecognizerGrammarNotFound), nameof(path), e);
107throw new ArgumentException(SR.Get(SRID.StreamMustBeReadable), nameof(stream));
149throw new ArgumentException(SR.Get(SRID.StrongTypedGrammarNotAGrammar), nameof(type));
181throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, typeTarget.Name, typeTarget.Name));
496throw new ArgumentException(SR.Get(SRID.DictationInvalidTopic), nameof(uri));
743throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, typeTarget.Name, typeTarget.Name));
926throw new ArgumentException(SR.Get(SRID.CannotLoadDotNetSemanticCode));
932throw new ArgumentException(SR.Get(SRID.CannotLoadDotNetSemanticCode), e);
1024throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, _ruleName, _ruleName));
1032throw new ArgumentException(SR.Get(SRID.RuleScriptInvalidParameters, _ruleName, _ruleName));
1063throw new ArgumentException(SR.Get(SRID.SapiErrorNoRulesToActivate));
1083throw new ArgumentException(SR.Get(SRID.RecognizerRuleNotFoundStream, rulename));
System.Text.Encoding.CodePages (13)
System.Text.Encodings.Web (3)
System.Text.Json (29)
System\Text\Json\ThrowHelper.Serialization.cs (5)
22throw new ArgumentException(SR.Format(SR.DeserializeWrongType, type, value.GetType()));
28throw new ArgumentException(SR.JsonSerializerDoesNotSupportComments, paramName);
157throw new ArgumentException(SR.Format(SR.CannotSerializeInvalidType, typeToConvert), paramName);
161throw new ArgumentException(SR.Format(SR.CannotSerializeInvalidMember, typeToConvert, propertyName, declaringType), paramName);
1144throw new ArgumentException(SR.JsonPolymorphismOptionsAssociatedWithDifferentJsonTypeInfo, paramName: parameterName);
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (2)
System.Text.RegularExpressions.Generator (2)
System.Threading.AccessControl (5)
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.Threading.Tasks.Parallel (1)
System.Transactions.Local (23)
System.Windows.Controls.Ribbon (7)
System.Windows.Extensions (1)
System.Windows.Forms (346)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (31)
1695throw new ArgumentException(string.Format(SR.DataGridView_NeedColumnAutoSizingCriteria, "autoSizeColumnMode"));
1986throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode"));
2132throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode"));
2364throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "autoSizeRowsMode"));
6844throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
9763throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
11237throw new ArgumentException(SR.DataGridView_PreviousModesHasWrongLength);
13241throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13305throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13320throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13346throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13418throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13494throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13581throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14042throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14069throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14261throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14463throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14473throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
16652throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17580throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17600throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17638throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17760throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17844throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18277throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18361throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18711throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18997throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
28167throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
28210throw new ArgumentException(SR.DataGridView_ColumnNeedsToBeDataBoundWhenSortingDataBoundDataGridView, nameof(dataGridViewColumn));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (13)
413throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
552throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
602throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
640throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
646throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
680throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
686throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
723throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
729throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
796throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
802throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
993throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView, nameof(dataGridViewColumn));
1028throw new ArgumentException(string.Format(SR.DataGridViewColumnCollection_ColumnNotFound, columnName), nameof(columnName));
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (17)
398throw new ArgumentException(SR.DataGridViewRowCollection_TooManyCells, nameof(dataGridViewRow));
883throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
933throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
939throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
983throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1042throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1068throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1074throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
1093throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1119throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1125throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
1144throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1240throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1481throw new ArgumentException(SR.DataGridViewRowCollection_TooManyCells, nameof(dataGridViewRow));
1513throw new ArgumentException(SR.DataGridViewRowCollection_TooManyCells, nameof(dataGridViewRow));
2148throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, nameof(dataGridViewRow));
2153throw new ArgumentException(SR.DataGridView_RowMustBeUnshared, nameof(dataGridViewRow));
System\Windows\Forms\Controls\ListView\ListView.cs (8)
258throw new ArgumentException(SR.ListViewActivationMustBeOnWhenHotTrackingIsOn, nameof(value));
1092throw new ArgumentException(SR.ListViewHoverMustBeOnWhenHotTrackingIsOn, nameof(value));
1872throw new ArgumentException(string.Format(SR.ListViewVirtualListSizeInvalidArgument, "value", value));
2266throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(value), value), nameof(value));
3826throw new ArgumentException(string.Format(SR.OnlyOneControl, ch.Text), nameof(ch));
4022throw new ArgumentException(string.Format(SR.OnlyOneControl, items[i].Text), nameof(items));
4049throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(items));
5051throw new ArgumentException(SR.ListViewStartIndexCannotBeLargerThanEndIndex);
System\Windows\Forms\Form.cs (8)
1463throw new ArgumentException(SR.AddDifferentThreads, nameof(value));
1480throw new ArgumentException(SR.FormMDIParentAndChild, nameof(value));
1485throw new ArgumentException(SR.MDIParentNotContainer, nameof(value));
1638throw new ArgumentException(SR.NonTopLevelCantHaveOwner, nameof(value));
2047throw new ArgumentException(SR.MDIContainerMustBeTopLevel, nameof(value));
5525throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)), nameof(owner));
5700throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
5779throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (5)
33throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style));
48throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style));
65throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(value), typeof(TableLayoutStyle)), nameof(value));
90throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style));
143throw new ArgumentException(string.Format(SR.OnlyOneControl, style.GetType().Name), nameof(style));
System.Windows.Forms.Analyzers.CSharp (2)
System.Windows.Forms.Design (37)
System.Windows.Forms.Primitives (61)
System.Xaml (60)
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 (4)
testhost.arm64 (4)
testhost.x86 (4)
TestProject.AppHost (2)
TestProject.IntegrationServiceA (1)
UIAutomationClient (21)
UIAutomationClientSideProviders (7)
UIAutomationProvider (2)
UIAutomationTypes (1)
vbc (1)
VBCSCompiler (1)
vstest.console (5)
vstest.console.arm64 (5)
WindowsFormsIntegration (2)
7546 references to ArgumentException
aspire (69)
aspire-managed (11)
Aspire.Azure.AI.Inference (6)
Aspire.Azure.AI.Inference.Tests (12)
Aspire.Azure.AI.OpenAI (4)
Aspire.Azure.AI.OpenAI.Tests (10)
Aspire.Azure.Data.Tables (4)
Aspire.Azure.Data.Tables.Tests (4)
Aspire.Azure.Messaging.EventHubs (15)
Aspire.Azure.Messaging.EventHubs.Tests (20)
Aspire.Azure.Messaging.ServiceBus (6)
Aspire.Azure.Messaging.ServiceBus.Tests (4)
Aspire.Azure.Messaging.WebPubSub (8)
Aspire.Azure.Messaging.WebPubSub.Tests (7)
Aspire.Azure.Npgsql (3)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
Aspire.Azure.Npgsql.Tests (4)
Aspire.Azure.Search.Documents (2)
Aspire.Azure.Search.Documents.Tests (4)
Aspire.Azure.Security.KeyVault (7)
Aspire.Azure.Security.KeyVault.Tests (12)
Aspire.Azure.Storage.Blobs (6)
Aspire.Azure.Storage.Blobs.Tests (5)
Aspire.Azure.Storage.Files.DataLake (4)
Aspire.Azure.Storage.Files.DataLake.Tests (9)
Aspire.Azure.Storage.Queues (10)
Aspire.Azure.Storage.Queues.Tests (9)
Aspire.Cli.EndToEnd.Tests (7)
Aspire.Cli.Tests (13)
Aspire.Confluent.Kafka (19)
Aspire.Confluent.Kafka.Tests (8)
Aspire.Dashboard (9)
Aspire.Dashboard.Tests (5)
Aspire.Deployment.EndToEnd.Tests (2)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (132)
Aspire.Hosting.Azure (22)
Aspire.Hosting.Azure.AppConfiguration (2)
Aspire.Hosting.Azure.AppContainers (3)
Aspire.Hosting.Azure.ApplicationInsights (1)
Aspire.Hosting.Azure.AppService (2)
Aspire.Hosting.Azure.CognitiveServices (9)
Aspire.Hosting.Azure.ContainerRegistry (6)
Aspire.Hosting.Azure.CosmosDB (16)
Aspire.Hosting.Azure.EventHubs (8)
Aspire.Hosting.Azure.FrontDoor (1)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.KeyVault (3)
Aspire.Hosting.Azure.Kubernetes (14)
Aspire.Hosting.Azure.Kubernetes.Tests (4)
Aspire.Hosting.Azure.Kusto (3)
Aspire.Hosting.Azure.Kusto.Tests (4)
Aspire.Hosting.Azure.Network (13)
Aspire.Hosting.Azure.PostgreSQL (3)
Aspire.Hosting.Azure.Redis (2)
Aspire.Hosting.Azure.Search (2)
Aspire.Hosting.Azure.ServiceBus (16)
Aspire.Hosting.Azure.SignalR (2)
Aspire.Hosting.Azure.Sql (3)
Aspire.Hosting.Azure.Storage (13)
Aspire.Hosting.Azure.Tests (168)
Aspire.Hosting.Azure.WebPubSub (5)
Aspire.Hosting.Browsers (22)
Aspire.Hosting.Browsers.Tests (22)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
Aspire.Hosting.Containers.Tests (9)
Aspire.Hosting.Docker (11)
Aspire.Hosting.Docker.Tests (4)
Aspire.Hosting.Dotnet.Tests (2)
Aspire.Hosting.DotnetTool.Tests (2)
Aspire.Hosting.EntityFrameworkCore (11)
Aspire.Hosting.EntityFrameworkCore.Tests (5)
Aspire.Hosting.Foundry (42)
Aspire.Hosting.Foundry.Tests (9)
Aspire.Hosting.Garnet (2)
Aspire.Hosting.Garnet.Tests (6)
Aspire.Hosting.GitHub.Models (3)
Aspire.Hosting.GitHub.Models.Tests (2)
Aspire.Hosting.Go (6)
Aspire.Hosting.Go.Tests (6)
Aspire.Hosting.Java (29)
JavaHostingExtensions.cs (28)
61/// <exception cref="ArgumentException"><paramref name="name"/> or <paramref name="appDirectory"/> is <see langword="null"/>, empty, or whitespace.</exception>
89ArgumentException.ThrowIfNullOrWhiteSpace(name);
90ArgumentException.ThrowIfNullOrWhiteSpace(appDirectory);
175/// <exception cref="ArgumentException"><paramref name="name"/>, <paramref name="appDirectory"/>, or <paramref name="jarPath"/> is <see langword="null"/>, empty, or whitespace.</exception>
192ArgumentException.ThrowIfNullOrWhiteSpace(name);
193ArgumentException.ThrowIfNullOrWhiteSpace(appDirectory);
194ArgumentException.ThrowIfNullOrWhiteSpace(jarPath);
223/// <exception cref="ArgumentException"><paramref name="name"/> or <paramref name="image"/> is <see langword="null"/>, empty, or whitespace.</exception>
259ArgumentException.ThrowIfNullOrWhiteSpace(name);
260ArgumentException.ThrowIfNullOrWhiteSpace(image);
282/// <exception cref="ArgumentException"><paramref name="name"/> or <paramref name="appDirectory"/> is <see langword="null"/>, empty, or whitespace.</exception>
331ArgumentException.ThrowIfNullOrWhiteSpace(name);
332ArgumentException.ThrowIfNullOrWhiteSpace(appDirectory);
356/// <exception cref="ArgumentException"><paramref name="name"/> or <paramref name="appDirectory"/> is <see langword="null"/>, empty, or whitespace.</exception>
411ArgumentException.ThrowIfNullOrWhiteSpace(name);
412ArgumentException.ThrowIfNullOrWhiteSpace(appDirectory);
634/// <exception cref="ArgumentException"><paramref name="goal"/> is <see langword="null"/>, empty, or whitespace.</exception>
647ArgumentException.ThrowIfNullOrWhiteSpace(goal);
662/// <exception cref="ArgumentException"><paramref name="task"/> is <see langword="null"/>, empty, or whitespace.</exception>
675ArgumentException.ThrowIfNullOrWhiteSpace(task);
942/// <exception cref="ArgumentException"><paramref name="wrapperPath"/> is <see langword="null"/>, empty, or whitespace.</exception>
953ArgumentException.ThrowIfNullOrWhiteSpace(wrapperPath);
998/// <exception cref="ArgumentException"><paramref name="mainClass"/> is <see langword="null"/>, empty, or whitespace.</exception>
1009ArgumentException.ThrowIfNullOrWhiteSpace(mainClass);
1022/// <exception cref="ArgumentException"><paramref name="jarPath"/> is <see langword="null"/>, empty, or whitespace.</exception>
1040ArgumentException.ThrowIfNullOrWhiteSpace(jarPath);
1175/// <exception cref="ArgumentException"><paramref name="agentPath"/> is <see langword="null"/>, empty, or whitespace.</exception>
1207ArgumentException.ThrowIfNullOrWhiteSpace(agentPath);
Aspire.Hosting.Java.Tests (13)
Aspire.Hosting.JavaScript (17)
Aspire.Hosting.JavaScript.Tests (20)
Aspire.Hosting.Kafka (2)
Aspire.Hosting.Kafka.Tests (8)
Aspire.Hosting.Keycloak (4)
Aspire.Hosting.Keycloak.Tests (8)
Aspire.Hosting.Kubernetes (57)
Aspire.Hosting.Kubernetes.Tests (26)
KubernetesHelmChartTests.cs (11)
115Assert.Throws<ArgumentException>(() => k8s.AddHelmChart("", "oci://example.com/chart", "1.0.0"));
116Assert.Throws<ArgumentException>(() => k8s.AddHelmChart("test", "", "1.0.0"));
117Assert.Throws<ArgumentException>(() => k8s.AddHelmChart("test", "oci://example.com/chart", ""));
155Assert.Throws<ArgumentException>(() => k8s.AddHelmChart("test", chartReference, "1.0.0"));
188Assert.Throws<ArgumentException>(() => k8s.AddHelmChart("test", "oci://example.com/chart", chartVersion));
217Assert.Throws<ArgumentException>(() => chart.WithNamespace(@namespace));
228Assert.Throws<ArgumentException>(() => chart.WithNamespace(tooLong));
241Assert.Throws<ArgumentException>(() => chart.WithReleaseName(releaseName));
252Assert.Throws<ArgumentException>(() => chart.WithReleaseName(tooLong));
265Assert.Throws<ArgumentException>(() => chart.WithHelmValue(key, "value"));
278Assert.Throws<ArgumentException>(() => chart.WithHelmValue("key", value));
Aspire.Hosting.Maui (8)
Aspire.Hosting.Maui.Tests (3)
Aspire.Hosting.Milvus (6)
Aspire.Hosting.Milvus.Tests (18)
Aspire.Hosting.MongoDB (6)
Aspire.Hosting.MongoDB.Tests (20)
Aspire.Hosting.MySql (6)
Aspire.Hosting.MySql.Tests (18)
Aspire.Hosting.Nats (2)
Aspire.Hosting.Nats.Tests (10)
Aspire.Hosting.OpenAI (4)
Aspire.Hosting.OpenAI.Tests (6)
Aspire.Hosting.Oracle (7)
Aspire.Hosting.Oracle.Tests (18)
Aspire.Hosting.Orleans (4)
Aspire.Hosting.Orleans.Tests (2)
Aspire.Hosting.PostgreSQL (6)
Aspire.Hosting.PostgreSQL.Tests (20)
Aspire.Hosting.Python (6)
Aspire.Hosting.Python.Tests (20)
Aspire.Hosting.Qdrant (2)
Aspire.Hosting.Qdrant.Tests (6)
Aspire.Hosting.RabbitMQ (2)
Aspire.Hosting.RabbitMQ.Tests (6)
Aspire.Hosting.Radius (28)
Aspire.Hosting.Radius.Tests (40)
Secrets\AddRadiusSecretStoreTests.cs (12)
98Assert.Throws<ArgumentException>(() =>
147Assert.Throws<ArgumentException>(() => store.WithData(d => d.Add(" ", pass)));
175Assert.Throws<ArgumentException>(() => store.WithExistingSecret(reference, "k"));
197Assert.Throws<ArgumentException>(() => store.WithExistingSecret("app/tls", "ok", " "));
243Assert.Throws<ArgumentException>(() => store.WithExistingSecret("app/s", "ok", " "));
257Assert.Throws<ArgumentException>(() => store.WithExistingSecret("BAD/REF", "ok"));
276var ex = Assert.Throws<ArgumentException>(() => store.WithExistingSecret("app/s", key));
286var ex = Assert.Throws<ArgumentException>(() => store.WithExistingSecret("app/s", new string('a', 254)));
300var ex = Assert.Throws<ArgumentException>(() => store.WithData(d => d.Add(key, pass)));
Aspire.Hosting.Redis (3)
Aspire.Hosting.Redis.Tests (16)
Aspire.Hosting.RemoteHost (17)
Aspire.Hosting.RemoteHost.Tests (10)
Aspire.Hosting.Rust (8)
Aspire.Hosting.Sdk.Tests (1)
Aspire.Hosting.SqlServer (4)
Aspire.Hosting.SqlServer.Tests (12)
Aspire.Hosting.Tasks (2)
Aspire.Hosting.Testing (17)
Aspire.Hosting.Testing.Tests (29)
Aspire.Hosting.Tests (98)
Utils\PasswordGeneratorTests.cs (5)
26Assert.Throws<ArgumentException>(() => Generate(10, false, true, true, true, 1, 0, 0, 0));
27Assert.Throws<ArgumentException>(() => Generate(10, true, false, true, true, 0, 1, 0, 0));
28Assert.Throws<ArgumentException>(() => Generate(10, true, true, false, true, 0, 0, 1, 0));
29Assert.Throws<ArgumentException>(() => Generate(10, true, true, true, false, 0, 0, 0, 1));
31Assert.Throws<ArgumentException>(() => Generate(10, false, false, false, false, 0, 0, 0, 0));
Aspire.Hosting.TestUtilities (1)
Aspire.Hosting.Valkey (3)
Aspire.Hosting.Valkey.Tests (6)
Aspire.Hosting.Yarp.Tests (7)
Aspire.Keycloak.Authentication (6)
Aspire.Keycloak.Authentication.Tests (40)
Aspire.Microsoft.Azure.Cosmos (6)
Aspire.Microsoft.Azure.Cosmos.Tests (6)
Aspire.Microsoft.Data.SqlClient (2)
Aspire.Microsoft.Data.SqlClient.Tests (4)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (7)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (5)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (2)
Aspire.Milvus.Client (2)
Aspire.Milvus.Client.Tests (4)
Aspire.MongoDB.Driver (2)
Aspire.MongoDB.Driver.Tests (4)
Aspire.MongoDB.Driver.v2.Tests (4)
Aspire.MongoDB.EntityFrameworkCore (1)
Aspire.MongoDB.EntityFrameworkCore.Tests (2)
Aspire.MySqlConnector (3)
Aspire.MySqlConnector.Tests (4)
Aspire.NATS.Net (8)
Aspire.NATS.Net.Tests (4)
Aspire.Npgsql (3)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
Aspire.Npgsql.Tests (4)
Aspire.OpenAI (4)
Aspire.OpenAI.Tests (10)
Aspire.Oracle.EntityFrameworkCore (1)
Aspire.Oracle.EntityFrameworkCore.Tests (2)
Aspire.Playground.Tests (2)
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
Aspire.Qdrant.Client (2)
Aspire.Qdrant.Client.Tests (4)
Aspire.RabbitMQ.Client (2)
Aspire.RabbitMQ.Client.Tests (4)
Aspire.Seq (1)
Aspire.Seq.Tests (2)
Aspire.StackExchange.Redis (4)
Aspire.StackExchange.Redis.DistributedCaching (3)
Aspire.StackExchange.Redis.DistributedCaching.Tests (4)
Aspire.StackExchange.Redis.OutputCaching (2)
Aspire.StackExchange.Redis.OutputCaching.Tests (4)
Aspire.StackExchange.Redis.Tests (4)
Aspire.Templates.Tests (2)
Aspire.TerminalHost (14)
Aspire.TestUtilities (1)
Aspire.TypeSystem (3)
dotnet (2)
dotnet-aot (3)
dotnet-Microsoft.XmlSerializer.Generator (1)
dotnet-openapi (11)
dotnet-sql-cache (2)
dotnet-svcutil-lib (66)
dotnet-svcutil.xmlserializer (1)
dotnet-user-jwts (1)
dotnet-user-secrets (1)
EventSourceGenerator (1)
GenerateDocumentationAndConfigFiles (19)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
66catch (ArgumentException ex)
ILLink.RoslynAnalyzer (2)
Infrastructure.Tests (4)
Microsoft.Analyzers.Local.Tests (11)
Microsoft.AspNetCore.Antiforgery (2)
Microsoft.AspNetCore.AsyncState (8)
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (5)
Microsoft.AspNetCore.Authentication.Facebook (2)
Microsoft.AspNetCore.Authentication.Negotiate (2)
Microsoft.AspNetCore.Authentication.OAuth (4)
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
Microsoft.AspNetCore.Authentication.Twitter (2)
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.Components (5)
Microsoft.AspNetCore.Components.AI (2)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Components.Testing (1)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.Cryptography.KeyDerivation (2)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.Abstractions (2)
Microsoft.AspNetCore.DataProtection.Extensions (6)
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (2)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (8)
Microsoft.AspNetCore.HeaderParsing (8)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Connections (2)
Microsoft.AspNetCore.Http.Connections.Client (2)
Microsoft.AspNetCore.Http.Results (4)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.HttpOverrides (8)
Microsoft.AspNetCore.Identity (3)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (4)
Microsoft.AspNetCore.InternalTesting (23)
ExceptionAssertions.cs (16)
76/// Verifies that the code throws an <see cref="ArgumentException"/>.
82public static ArgumentException ThrowsArgument(Action testCode, string paramName, string exceptionMessage)
84return ThrowsArgumentInternal<ArgumentException>(testCode, paramName, exceptionMessage);
91where TException : ArgumentException
103/// Verifies that the code throws an <see cref="ArgumentException"/>.
109public static Task<ArgumentException> ThrowsArgumentAsync(Func<Task> testCode, string paramName, string exceptionMessage)
111return ThrowsArgumentAsyncInternal<ArgumentException>(testCode, paramName, exceptionMessage);
118where TException : ArgumentException
152public static ArgumentException ThrowsArgumentNullOrEmpty(Action testCode, string paramName)
154return ThrowsArgumentInternal<ArgumentException>(testCode, paramName, "Value cannot be null or empty.");
164public static Task<ArgumentException> ThrowsArgumentNullOrEmptyAsync(Func<Task> testCode, string paramName)
166return ThrowsArgumentAsyncInternal<ArgumentException>(testCode, paramName, "Value cannot be null or empty.");
176public static ArgumentException ThrowsArgumentNullOrEmptyString(Action testCode, string paramName)
178return ThrowsArgumentInternal<ArgumentException>(testCode, paramName, "Value cannot be null or an empty string.");
188public static Task<ArgumentException> ThrowsArgumentNullOrEmptyStringAsync(Func<Task> testCode, string paramName)
190return ThrowsArgumentAsyncInternal<ArgumentException>(testCode, paramName, "Value cannot be null or an empty string.");
Microsoft.AspNetCore.JsonPatch (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.Mvc.Core (19)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.Razor (5)
Microsoft.AspNetCore.Mvc.RazorPages (40)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (9)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (2)
Microsoft.AspNetCore.Razor.Utilities.Shared (11)
Microsoft.AspNetCore.Rewrite (10)
Microsoft.AspNetCore.Routing (12)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IISIntegration (1)
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Session (2)
Microsoft.AspNetCore.SignalR.Client (2)
Microsoft.AspNetCore.SignalR.Client.Core (2)
Microsoft.AspNetCore.SignalR.Common (6)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.AspNetCore.SpaServices.Extensions (9)
Microsoft.AspNetCore.Testing (8)
Microsoft.AspNetCore.WebUtilities (2)
Microsoft.Bcl.AsyncInterfaces (1)
Microsoft.Bcl.Cryptography (4)
Microsoft.Bcl.Numerics (1)
Microsoft.Build (138)
Microsoft.Build.Framework (33)
Microsoft.Build.Tasks.CodeAnalysis (3)
Microsoft.Build.Tasks.Core (67)
Microsoft.Build.Tasks.Git (4)
Microsoft.Build.Utilities.Core (48)
Microsoft.CodeAnalysis (83)
Microsoft.CodeAnalysis.Analyzers (19)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
66catch (ArgumentException ex)
Microsoft.CodeAnalysis.AnalyzerUtilities (19)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
66catch (ArgumentException ex)
Microsoft.CodeAnalysis.CodeStyle (13)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
66catch (ArgumentException ex)
Microsoft.CodeAnalysis.CSharp (18)
Microsoft.CodeAnalysis.CSharp.Scripting (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Extensions.Package (6)
Microsoft.CodeAnalysis.Features (5)
Microsoft.CodeAnalysis.NetAnalyzers (7)
Microsoft.CodeAnalysis.Razor.Compiler (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (19)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
66catch (ArgumentException ex)
Microsoft.CodeAnalysis.Scripting (14)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (36)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
66catch (ArgumentException ex)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.CSharp (1)
Microsoft.Data.Analysis (20)
DataFrameColumnCollection.cs (18)
180/// <exception cref="ArgumentException">Throws if <paramref name="columnName"/> is not present in this <see cref="DataFrame"/></exception>
213/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
231/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
248/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
265/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
282/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
299/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
316/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
333/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
350/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
367/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
384/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
401/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
418/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
435/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
452/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
469/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
486/// <exception cref="ArgumentException">A column named <paramref name="name"/> cannot be found, or if the column's type doesn't match.</exception>
Microsoft.Data.Analysis.Tests (56)
DataFrameTests.cs (43)
44Assert.Throws<ArgumentException>(() => dataFrame["Int5"]);
45Assert.Throws<ArgumentException>(() => dataFrame[(string)null]);
78Assert.Throws<ArgumentException>(() => dataFrame.Columns.Insert(2, bigColumn));
79Assert.Throws<ArgumentException>(() => dataFrame.Columns.Add(bigColumn));
83Assert.Throws<ArgumentException>(() => dataFrame.Columns.Insert(2, smallColumn));
84Assert.Throws<ArgumentException>(() => dataFrame.Columns.Add(smallColumn));
88Assert.Throws<ArgumentException>(() => dataFrame.Columns.Insert(2, repeatedName));
97Assert.Throws<ArgumentException>(() => dataFrame.Columns[1] = intColumnCopy);
191Assert.Throws<ArgumentException>(() => dataframe["City"]);
210Assert.Throws<ArgumentException>(() => dataframe["City"]);
720Assert.Throws<ArgumentException>(() => df.Sample(13));
806Assert.Throws<ArgumentException>(() => df.Columns.Insert(1, new Int32DataFrameColumn("Int2", Enumerable.Range(0, 5).Select(x => x))));
1173Assert.Throws<ArgumentException>(() => df.Append(new List<object> { 5, true, true }, inPlace: true));
1282Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetPrimitiveColumn<float>("Int"));
1286Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetStringColumn("ArrowString"));
1290Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetArrowStringColumn("String"));
1294Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Byte"));
1298Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Int"));
1302Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Bool"));
1306Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Char"));
1310Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Decimal"));
1314Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Double"));
1318Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetDoubleColumn("Float"));
1322Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Long"));
1326Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Sbyte"));
1330Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Short"));
1334Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Uint"));
1338Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Ulong"));
1342Assert.Throws<ArgumentException>(() => dataFrame.Columns.GetSingleColumn("Ushort"));
1618Assert.Throws<ArgumentException>(() => df.Melt(new string[0], new string[] { "id", "A", "B" }));
1621Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A", "B" }, new string[0]));
1624Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "A", "B" }));
1627Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, valueName: null));
1628Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, valueName: ""));
1629Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, valueName: " \r\n\t"));
1632Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, variableName: null));
1633Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, variableName: ""));
1634Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, variableName: " \r\n\t"));
1637Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, valueName: "B"));
1640Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, variableName: "B"));
1643Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, variableName: "TestName", valueName: "TestName"));
1649Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "NonExistentColumn" }, new string[] { "A", "B" }));
1652Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "NonExistentColumn" }));
Microsoft.Deployment.DotNet.Releases (1)
Microsoft.Diagnostics.NETCore.Client (1)
Microsoft.DiaSymReader (1)
Microsoft.DotNet.ApiCompat.Task (1)
Microsoft.DotNet.Build.Tasks.Feed (2)
Microsoft.DotNet.Cli.Definitions (1)
Microsoft.DotNet.HotReload.Watch (2)
Microsoft.DotNet.ProjectTools (1)
Microsoft.Extensions.AI (10)
Microsoft.Extensions.AI.Abstractions (58)
Microsoft.Extensions.AI.Abstractions.Tests (65)
Contents\DataContentTests.cs (9)
19[InlineData("", typeof(ArgumentException))]
20[InlineData("invalid", typeof(ArgumentException))]
21[InlineData("data", typeof(ArgumentException))]
24[InlineData("http://localhost/blah.png", typeof(ArgumentException))]
25[InlineData("https://localhost/blah.png", typeof(ArgumentException))]
26[InlineData("ftp://localhost/blah.png", typeof(ArgumentException))]
27[InlineData("a://localhost/blah.png", typeof(ArgumentException))]
61Assert.Throws<ArgumentException>("mediaType", () => new DataContent("data:image/png;base64,aGVsbG8=", type));
690await Assert.ThrowsAsync<ArgumentException>("path", async () => await DataContent.LoadFromAsync(string.Empty));
Contents\UriContentTests.cs (6)
19Assert.Throws<ArgumentException>("mediaType", () => new UriContent("data:image/png;base64,aGVsbG8=", ""));
20Assert.Throws<ArgumentException>("mediaType", () => new UriContent("data:image/png;base64,aGVsbG8=", "image"));
22Assert.Throws<ArgumentException>("mediaType", () => new UriContent(new Uri("data:image/png;base64,aGVsbG8="), ""));
23Assert.Throws<ArgumentException>("mediaType", () => new UriContent(new Uri("data:image/png;base64,aGVsbG8="), "audio"));
38Assert.Throws<ArgumentException>("mediaType", () => new UriContent("http://localhost/something", type));
41Assert.Throws<ArgumentException>("value", () => c.MediaType = type);
Utilities\AIJsonUtilitiesTests.cs (11)
630ArgumentException ex = Assert.Throws<ArgumentException>(() => AIJsonUtilities.CreateFunctionJsonSchema(((Action<string, string>)DuplicateByAttribute).Method));
639ArgumentException ex2 = Assert.Throws<ArgumentException>(() => AIJsonUtilities.CreateFunctionJsonSchema(((Action<string, string>)DuplicateByCollision).Method));
1258Assert.Throws<ArgumentException>("contentType", () => options.AddAIContentType(typeof(int), "discriminator"));
1259Assert.Throws<ArgumentException>("contentType", () => options.AddAIContentType(typeof(object), "discriminator"));
1260Assert.Throws<ArgumentException>("contentType", () => options.AddAIContentType(typeof(ChatMessage), "discriminator"));
1267Assert.Throws<ArgumentException>("contentType", () => options.AddAIContentType<AIContent>("discriminator"));
1268Assert.Throws<ArgumentException>("contentType", () => options.AddAIContentType<TextContent>("discriminator"));
1871Assert.Throws<ArgumentException>("transformOptions", () => AIJsonUtilities.TransformSchema(schema, transformOptions: new()));
1884Assert.Throws<ArgumentException>("schema", () => AIJsonUtilities.TransformSchema(schema, transformOptions));
Microsoft.Extensions.AI.Evaluation (8)
Microsoft.Extensions.AI.Evaluation.Console (8)
Microsoft.Extensions.AI.Evaluation.NLP (8)
Microsoft.Extensions.AI.Evaluation.Quality (8)
Microsoft.Extensions.AI.Evaluation.Reporting (9)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (8)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (8)
Microsoft.Extensions.AI.Evaluation.Safety (8)
Microsoft.Extensions.AI.OpenAI (9)
Microsoft.Extensions.AI.OpenAI.Tests (3)
Microsoft.Extensions.AI.Stabilization.Tests (5)
Microsoft.Extensions.AI.Tests (26)
Microsoft.Extensions.AmbientMetadata.Application (12)
Microsoft.Extensions.AmbientMetadata.Application.Tests (4)
Microsoft.Extensions.AmbientMetadata.Build (8)
Microsoft.Extensions.AsyncState (8)
Microsoft.Extensions.Caching.Hybrid (8)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
Microsoft.Extensions.Caching.SqlServer (6)
Microsoft.Extensions.Caching.StackExchangeRedis (2)
Microsoft.Extensions.Compliance.Abstractions (11)
Microsoft.Extensions.Compliance.Abstractions.Tests (4)
Microsoft.Extensions.Compliance.Redaction (8)
Microsoft.Extensions.Compliance.Redaction.Tests (3)
Microsoft.Extensions.Compliance.Testing (8)
Microsoft.Extensions.Compliance.Testing.Tests (1)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
Microsoft.Extensions.DataIngestion (8)
Microsoft.Extensions.DataIngestion.Abstractions (9)
Microsoft.Extensions.DataIngestion.Markdig (8)
Microsoft.Extensions.DataIngestion.MarkItDown (8)
Microsoft.Extensions.DataIngestion.Tests (9)
Processors\ClassificationEnricherTests.cs (4)
29Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new(new TestChatClient()), predefinedClasses: []));
35Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new(new TestChatClient()), predefinedClasses: ["same", "same"]));
41Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new(new TestChatClient()), predefinedClasses: ["same", "Unknown"]));
47Assert.Throws<ArgumentException>("predefinedClasses", () => new ClassificationEnricher(new(new TestChatClient()), predefinedClasses: ["some"], fallbackClass: "some"));
Microsoft.Extensions.DependencyInjection (1)
Microsoft.Extensions.DependencyInjection.AutoActivation (8)
Microsoft.Extensions.DependencyInjection.AutoActivation.Tests (1)
Microsoft.Extensions.Diagnostics.Abstractions (3)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (8)
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (4)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (8)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (8)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization.Tests (1)
Microsoft.Extensions.Diagnostics.Probes (8)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (10)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes (8)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Diagnostics.Testing (8)
Microsoft.Extensions.Diagnostics.Testing.Tests (4)
Microsoft.Extensions.Features (2)
Microsoft.Extensions.FileProviders.Embedded (6)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Extensions.Hosting.Testing (8)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.Http.Resilience (8)
Microsoft.Extensions.Http.Resilience.Tests (7)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Identity.Stores (2)
Microsoft.Extensions.Localization (6)
Microsoft.Extensions.Localization.Abstractions (2)
Microsoft.Extensions.Logging.AzureAppServices (6)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.ObjectPool (2)
Microsoft.Extensions.ObjectPool.DependencyInjection (8)
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (2)
Microsoft.Extensions.Options.Contextual (8)
Microsoft.Extensions.Primitives (1)
Microsoft.Extensions.Resilience (8)
Microsoft.Extensions.ServiceDiscovery (9)
Microsoft.Extensions.ServiceDiscovery.Abstractions (10)
Microsoft.Extensions.ServiceDiscovery.Dns (8)
Microsoft.Extensions.ServiceDiscovery.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Yarp (8)
Microsoft.Extensions.Telemetry (8)
Microsoft.Extensions.Telemetry.Abstractions (12)
Microsoft.Extensions.Telemetry.Abstractions.Tests (5)
Microsoft.Extensions.Telemetry.Tests (18)
Latency\Internal\LatencyContextRegistrySetTests.cs (6)
49Assert.Throws<ArgumentException>(() => GetRegistry(n, e, e));
50Assert.Throws<ArgumentException>(() => GetRegistry(e, n, e));
51Assert.Throws<ArgumentException>(() => GetRegistry(e, e, n));
54Assert.Throws<ArgumentException>(() => GetRegistry(n, e, e));
55Assert.Throws<ArgumentException>(() => GetRegistry(e, n, e));
56Assert.Throws<ArgumentException>(() => GetRegistry(e, e, n));
Microsoft.Extensions.TimeProvider.Testing (8)
Microsoft.Extensions.VectorData.Abstractions (8)
Microsoft.Extensions.VectorData.ConformanceTests (2)
Microsoft.Extensions.WebEncoders (2)
Microsoft.Gen.BuildMetadata.Generated.Tests (5)
Microsoft.Gen.BuildMetadata.Unit.Tests (4)
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (1)
Microsoft.JSInterop (3)
Microsoft.Maui (3)
Microsoft.Maui.Controls (3)
Microsoft.Maui.Controls.Xaml (2)
Microsoft.Maui.Essentials (3)
Microsoft.ML.AutoML.Tests (38)
UserInputValidationTests.cs (36)
36var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(_data,
48var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(_data,
62var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(_data,
78var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(_data, columnInfo, null, task));
89var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(_data, columnInfo, null, TaskKind.Regression));
99var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(_data, columnInfo, null, TaskKind.Regression));
118var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(trainData,
141var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(trainData,
164var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(trainData,
180var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateInferColumnsArgs("idontexist", "Label"));
189var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateInferColumnsArgs(emptyFilePath, "Label"));
208var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(dataView, new ColumnInformation(), null, TaskKind.Regression));
228var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(dataView, columnInfo, null, task));
302var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(dataView, new ColumnInformation(),
315var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(dataView, new ColumnInformation(),
338var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(trainingData, new ColumnInformation(),
403var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(_data,
418var ex = Assert.Throws<ArgumentException>(() => UserInputValidationUtil.ValidateExperimentExecuteArgs(_data,
Microsoft.ML.Tests (9)
ImagesTests.cs (9)
120Assert.Throws<ArgumentException>(() => new ImageLoadingTransformer(env, incorrectImageFolder, ("ImageReal", "ImagePath")).Transform(data));
1265Assert.Throws<ArgumentException>(() => MLImage.CreateFromFile("This is Invalid Path"));
1267Assert.Throws<ArgumentException>(() => MLImage.CreateFromStream(new MemoryStream(new byte[10])));
1268Assert.Throws<ArgumentException>(() => MLImage.CreateFromPixels(10, 10, MLPixelFormat.Unknown, Array.Empty<byte>()));
1269Assert.Throws<ArgumentException>(() => MLImage.CreateFromPixels(10, 10, MLPixelFormat.Bgra32, Array.Empty<byte>()));
1270Assert.Throws<ArgumentException>(() => MLImage.CreateFromPixels(0, 10, MLPixelFormat.Bgra32, new byte[10]));
1271Assert.Throws<ArgumentException>(() => MLImage.CreateFromPixels(10, 0, MLPixelFormat.Bgra32, new byte[10]));
1272Assert.Throws<ArgumentException>(() => MLImage.CreateFromPixels(10, 10, MLPixelFormat.Bgra32, new byte[401]));
1302Assert.Throws<ArgumentException>(() => image1.Save(imageTempPath));
Microsoft.ML.Tokenizers (3)
Microsoft.ML.Tokenizers.Tests (11)
Microsoft.ML.TorchSharp (2)
Microsoft.NET.Build.Containers (5)
Microsoft.NET.Build.Extensions.Tasks (2)
Microsoft.NET.Build.Tasks (1)
Microsoft.Net.Http.Headers (3)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.Private.Windows.Core (14)
Microsoft.TemplateEngine.Abstractions (1)
Microsoft.TemplateEngine.Cli (2)
Microsoft.TemplateEngine.Edge (5)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (5)
Microsoft.TemplateEngine.Utils (3)
Microsoft.TemplateSearch.Common (4)
Microsoft.TestPlatform.Build (1)
Microsoft.TestPlatform.CoreUtilities (3)
Microsoft.TestPlatform.Filter.Source (1)
Microsoft.TestPlatform.PlatformAbstractions (2)
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Microsoft.TestPlatform.Utilities (1)
Microsoft.VisualBasic.Core (10)
Microsoft.VisualStudio.TestPlatform.Common (1)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
Microsoft.Web.Xdt.Extensions (3)
MSBuild (9)
MSBuild.Coordinator (1)
mscorlib (1)
netstandard (1)
NuGet.CommandLine.XPlat (8)
NuGet.Common (1)
NuGet.Configuration (6)
NuGet.Credentials (1)
NuGet.PackageManagement (3)
NuGet.Packaging (30)
NuGet.ProjectModel (2)
NuGet.Protocol (107)
NuGet.Versioning (2)
PresentationBuildTasks (4)
PresentationCore (54)
PresentationFramework (170)
PresentationUI (4)
ReachFramework (20)
Roslyn.Diagnostics.Analyzers (19)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
66catch (ArgumentException ex)
rzc (3)
ScenarioTests.Common.Tests (2)
Security.TransportSecurity.IntegrationTests (2)
Shared (11)
Shared.Tests (16)
Throw\ThrowTest.cs (16)
41var exception = Assert.Throws<ArgumentException>(() => Throw.ArgumentException(paramName, message));
54var exception = Assert.Throws<ArgumentException>(() => Throw.ArgumentException(paramName, message, innerException));
239var exception = Assert.Throws<ArgumentException>(() => Throw.IfNullOrWhitespace(" ", "paramName"));
261var exception = Assert.Throws<ArgumentException>(() => Throw.IfNullOrEmpty("", "paramName"));
306var exception = Assert.Throws<ArgumentException>(() => Throw.IfBufferTooSmall(23, 24, "paramName"));
334ArgumentException exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((ICollection<int>?)null, "foo"));
351exception = Assert.Throws<ArgumentException>(() => Throw.IfNullOrEmpty((ICollection<int>?)list, "foo"));
355exception = Assert.Throws<ArgumentException>(() => Throw.IfNullOrEmpty((IReadOnlyCollection<int>?)list, "foo"));
359exception = Assert.Throws<ArgumentException>(() => Throw.IfNullOrEmpty(list, "foo"));
365exception = Assert.Throws<ArgumentException>(() => Throw.IfNullOrEmpty(queue, "foo"));
371exception = Assert.Throws<ArgumentException>(() => Throw.IfNullOrEmpty(enumerable, "foo"));
System.Collections (3)
System.Collections.Concurrent (26)
System.Collections.Immutable (20)
System.CommandLine (4)
System.ComponentModel.Annotations (23)
System.ComponentModel.Composition (48)
System.ComponentModel.TypeConverter (2)
System.Configuration.ConfigurationManager (7)
System.Data.Common (44)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (18)
41internal static ArgumentException Argument(string error)
43ArgumentException e = new ArgumentException(error);
48internal static ArgumentException Argument(string error, Exception? inner)
50ArgumentException e = new ArgumentException(error, inner);
55internal static ArgumentException Argument(string error, string? parameter)
57ArgumentException e = new ArgumentException(error, parameter);
200internal static ArgumentException InvalidMultipartName(string property, string value)
202ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartName, property, value));
207internal static ArgumentException InvalidMultipartNameIncorrectUsageOfQuotes(string property, string value)
209ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameQuoteUsage, property, value));
214internal static ArgumentException InvalidMultipartNameToManyParts(string property, string value, int limit)
216ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameToManyParts, property, value, limit));
279internal static ArgumentException ConnectionStringSyntax(int index)
283internal static ArgumentException KeywordNotSupported(string keyword)
287internal static ArgumentException ConvertFailed(Type fromType, Type toType, Exception? innerException)
307internal static ArgumentException CollectionRemoveInvalidObject(Type itemType, ICollection collection)
393internal static ArgumentException ParametersIsNotParent(Type parameterType, ICollection collection)
397internal static ArgumentException ParametersIsParent(Type parameterType, ICollection collection)
System.Data.Odbc (32)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (18)
41internal static ArgumentException Argument(string error)
43ArgumentException e = new ArgumentException(error);
48internal static ArgumentException Argument(string error, Exception? inner)
50ArgumentException e = new ArgumentException(error, inner);
55internal static ArgumentException Argument(string error, string? parameter)
57ArgumentException e = new ArgumentException(error, parameter);
200internal static ArgumentException InvalidMultipartName(string property, string value)
202ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartName, property, value));
207internal static ArgumentException InvalidMultipartNameIncorrectUsageOfQuotes(string property, string value)
209ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameQuoteUsage, property, value));
214internal static ArgumentException InvalidMultipartNameToManyParts(string property, string value, int limit)
216ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameToManyParts, property, value, limit));
279internal static ArgumentException ConnectionStringSyntax(int index)
283internal static ArgumentException KeywordNotSupported(string keyword)
287internal static ArgumentException ConvertFailed(Type fromType, Type toType, Exception? innerException)
307internal static ArgumentException CollectionRemoveInvalidObject(Type itemType, ICollection collection)
393internal static ArgumentException ParametersIsNotParent(Type parameterType, ICollection collection)
397internal static ArgumentException ParametersIsParent(Type parameterType, ICollection collection)
System.Data.OleDb (46)
System\Data\Common\AdapterUtil.cs (31)
64internal static ArgumentException Argument(string error)
66ArgumentException e = new ArgumentException(error);
70internal static ArgumentException Argument(string error, Exception? inner)
72ArgumentException e = new ArgumentException(error, inner);
76internal static ArgumentException Argument(string error, string? parameter)
78ArgumentException e = new ArgumentException(error, parameter);
82internal static ArgumentException Argument(string error, string parameter, Exception inner)
84ArgumentException e = new ArgumentException(error, parameter, inner);
171internal static ArgumentException InvalidMultipartName(string property, string value)
173ArgumentException e = new ArgumentException(SR.GetString(SR.ADP_InvalidMultipartName, SR.GetString(property), value));
178internal static ArgumentException InvalidMultipartNameIncorrectUsageOfQuotes(string property, string value)
180ArgumentException e = new ArgumentException(SR.GetString(SR.ADP_InvalidMultipartNameQuoteUsage, SR.GetString(property), value));
185internal static ArgumentException InvalidMultipartNameToManyParts(string property, string value, int limit)
187ArgumentException e = new ArgumentException(SR.GetString(SR.ADP_InvalidMultipartNameToManyParts, SR.GetString(property), value, limit));
350internal static ArgumentException ConnectionStringSyntax(int index)
354internal static ArgumentException KeywordNotSupported(string keyword)
358internal static ArgumentException UdlFileError(Exception inner)
362internal static ArgumentException InvalidUDL()
370internal static ArgumentException InvalidKeyname(string? parameterName)
374internal static ArgumentException InvalidValue(string parameterName)
378internal static ArgumentException ConvertFailed(Type fromType, Type toType, Exception innerException)
449internal static ArgumentException CollectionRemoveInvalidObject(Type itemType, ICollection collection)
469internal static ArgumentException ParametersIsNotParent(Type parameterType, ICollection collection)
473internal static ArgumentException ParametersIsParent(Type parameterType, ICollection collection)
692internal static ArgumentException InvalidDataType(TypeCode typecode)
696internal static ArgumentException DbTypeNotSupported(System.Data.DbType type, Type enumtype)
700internal static ArgumentException UnknownDataTypeCode(Type dataType, TypeCode typeCode)
704internal static ArgumentException InvalidOffsetValue(int value)
708internal static ArgumentException InvalidSizeValue(int value)
719if (inner is ArgumentException)
799internal static ArgumentException InvalidRestrictionValue(string collectionName, string restrictionName, string restrictionValue)
System.Diagnostics.Process (9)
System.Diagnostics.TextWriterTraceListener (1)
System.Diagnostics.TraceSource (2)
System.DirectoryServices (1)
System.DirectoryServices.AccountManagement (3)
System.DirectoryServices.Protocols (1)
System.Drawing.Common (25)
System.Formats.Asn1 (122)
System.Formats.Cbor (5)
System.Formats.Nrbf (4)
System.Formats.Tar (56)
System.IO.Compression (37)
System.IO.Compression.Brotli (4)
System.IO.Compression.ZipFile (63)
System\IO\Compression\ZipFile.Create.Async.cs (11)
17/// <exception cref="ArgumentException">archiveFileName is a zero-length string, contains only whitespace, or contains one
42/// <exception cref="ArgumentException">archiveFileName is a zero-length string, contains only whitespace,
82/// <exception cref="ArgumentException">archiveFileName is a zero-length string, contains only whitespace,
151/// otherwise an <see cref="ArgumentException"/> is thrown.</para>
196/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length
241/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length
290/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length
336/// otherwise an <see cref="ArgumentException"/> is thrown.</para>
356/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
384/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
415/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System\IO\Compression\ZipFile.Create.cs (11)
15/// <exception cref="ArgumentException">archiveFileName is a zero-length string, contains only whitespace, or contains one
37/// <exception cref="ArgumentException">archiveFileName is a zero-length string, contains only whitespace,
74/// <exception cref="ArgumentException">archiveFileName is a zero-length string, contains only whitespace,
142/// otherwise an <see cref="ArgumentException"/> is thrown.</para>
183/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length
225/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length
271/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length
316/// otherwise an <see cref="ArgumentException"/> is thrown.</para>
333/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
359/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
387/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System\IO\Compression\ZipFile.Extract.Async.cs (13)
22/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace,
57/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace,
93/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace,
133/// otherwise an <see cref="ArgumentException"/> is thrown.</para>
150/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace,
191/// otherwise an <see cref="ArgumentException"/> is thrown.</para>
218/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace,
259/// otherwise an <see cref="ArgumentException"/> is thrown.</para>
291/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception>
323/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception>
361/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
402/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
458/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System\IO\Compression\ZipFile.Extract.cs (13)
20/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace,
52/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace,
85/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace,
124/// otherwise an <see cref="ArgumentException"/> is thrown.</para>
139/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace,
179/// otherwise an <see cref="ArgumentException"/> is thrown.</para>
201/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace,
241/// otherwise an <see cref="ArgumentException"/> is thrown.</para>
264/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception>
293/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception>
328/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
366/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
414/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System.IO.FileSystem.AccessControl (3)
System.IO.FileSystem.Watcher (1)
System.IO.Hashing (4)
System.IO.IsolatedStorage (11)
System.IO.MemoryMappedFiles (4)
System.IO.Packaging (73)
System.IO.Pipes (2)
System.Linq (10)
System.Linq.AsyncEnumerable (12)
System.Linq.Expressions (165)
System\Linq\Expressions\Error.cs (133)
17internal static ArgumentException ReducibleMustOverrideReduce()
24internal static ArgumentException ArgCntMustBeGreaterThanNameCnt()
45internal static ArgumentException SameKeyExistsInExpando(object? key)
73internal static ArgumentException MustReduceToDifferent()
115internal static ArgumentException ReducedNotCompatible()
122internal static ArgumentException SetterHasNoParams(string? paramName)
129internal static ArgumentException PropertyCannotHaveRefType(string? paramName)
136internal static ArgumentException IndexesOfSetGetMustMatch(string? paramName)
150internal static ArgumentException FirstArgumentMustBeCallSite()
157internal static ArgumentException AccessorsCannotHaveVarArgs(string? paramName)
164private static ArgumentException AccessorsCannotHaveByRefArgs(string? paramName)
171internal static ArgumentException AccessorsCannotHaveByRefArgs(string? paramName, int index)
178internal static ArgumentException TypeMustBeDerivedFromSystemDelegate()
192internal static ArgumentException BoundsCannotBeLessThanOne(string? paramName)
199internal static ArgumentException TypeMustNotBeByRef(string? paramName)
207internal static ArgumentException TypeMustNotBePointer(string? paramName)
215internal static ArgumentException SetterMustBeVoid(string? paramName)
223internal static ArgumentException PropertyTypeMustMatchGetter(string? paramName)
231internal static ArgumentException PropertyTypeMustMatchSetter(string? paramName)
238internal static ArgumentException BothAccessorsMustBeStatic(string? paramName)
245internal static ArgumentException OnlyStaticFieldsHaveNullInstance(string? paramName)
252internal static ArgumentException OnlyStaticPropertiesHaveNullInstance(string? paramName)
259internal static ArgumentException OnlyStaticMethodsHaveNullInstance()
266internal static ArgumentException PropertyTypeCannotBeVoid(string? paramName)
273internal static ArgumentException InvalidUnboxType(string? paramName)
280internal static ArgumentException ExpressionMustBeWriteable(string? paramName)
287internal static ArgumentException ArgumentMustNotHaveValueType(string? paramName)
294internal static ArgumentException MustBeReducible()
301internal static ArgumentException AllTestValuesMustHaveSameType(string? paramName)
308internal static ArgumentException AllCaseBodiesMustHaveSameType(string? paramName)
315internal static ArgumentException DefaultBodyMustBeSupplied(string? paramName)
322internal static ArgumentException LabelMustBeVoidOrHaveExpression(string? paramName)
329internal static ArgumentException LabelTypeMustBeVoid(string? paramName)
336internal static ArgumentException QuotedExpressionMustBeLambda(string? paramName)
343internal static ArgumentException VariableMustNotBeByRef(object? p0, object? p1, string? paramName)
350internal static ArgumentException VariableMustNotBeByRef(object? p0, object? p1, string? paramName, int index)
357private static ArgumentException DuplicateVariable(object? p0, string? paramName)
364internal static ArgumentException DuplicateVariable(object? p0, string? paramName, int index)
371internal static ArgumentException StartEndMustBeOrdered()
378internal static ArgumentException FaultCannotHaveCatchOrFinally(string? paramName)
385internal static ArgumentException TryMustHaveCatchFinallyOrFault()
392internal static ArgumentException BodyOfCatchMustHaveSameTypeAsBodyOfTry()
406internal static ArgumentException UserDefinedOperatorMustBeStatic(object? p0, string? paramName)
413internal static ArgumentException UserDefinedOperatorMustNotBeVoid(object? p0, string? paramName)
469internal static ArgumentException ArgumentTypeCannotBeVoid()
476internal static ArgumentException ArgumentMustBeArray(string? paramName)
483internal static ArgumentException ArgumentMustBeBoolean(string? paramName)
490internal static ArgumentException EqualityMustReturnBoolean(object? p0, string? paramName)
497internal static ArgumentException ArgumentMustBeFieldInfoOrPropertyInfo(string? paramName)
504private static ArgumentException ArgumentMustBeFieldInfoOrPropertyInfoOrMethod(string? paramName)
511internal static ArgumentException ArgumentMustBeFieldInfoOrPropertyInfoOrMethod(string? paramName, int index)
519private static ArgumentException ArgumentMustBeInstanceMember(string? paramName)
526internal static ArgumentException ArgumentMustBeInstanceMember(string? paramName, int index)
533private static ArgumentException ArgumentMustBeInteger(string? paramName)
540internal static ArgumentException ArgumentMustBeInteger(string? paramName, int index)
547internal static ArgumentException ArgumentMustBeArrayIndexType(string? paramName)
554internal static ArgumentException ArgumentMustBeArrayIndexType(string? paramName, int index)
561internal static ArgumentException ArgumentMustBeSingleDimensionalArrayType(string? paramName)
568internal static ArgumentException ArgumentTypesMustMatch()
575internal static ArgumentException ArgumentTypesMustMatch(string? paramName)
596internal static ArgumentException IncorrectTypeForTypeAs(object? p0, string? paramName)
618private static ArgumentException ArgumentTypeDoesNotMatchMember(object? p0, object? p1, string? paramName)
625internal static ArgumentException ArgumentTypeDoesNotMatchMember(object? p0, object? p1, string? paramName, int index)
632private static ArgumentException ArgumentMemberNotDeclOnType(object? p0, object? p1, string? paramName)
639internal static ArgumentException ArgumentMemberNotDeclOnType(object? p0, object? p1, string? paramName, int index)
647internal static ArgumentException ExpressionTypeDoesNotMatchReturn(object? p0, object? p1)
654internal static ArgumentException ExpressionTypeDoesNotMatchAssignment(object? p0, object? p1)
661internal static ArgumentException ExpressionTypeDoesNotMatchLabel(object? p0, object? p1)
668internal static ArgumentException ExpressionTypeNotInvocable(object? p0, string? paramName)
675internal static ArgumentException FieldNotDefinedForType(object? p0, object? p1)
682internal static ArgumentException InstanceFieldNotDefinedForType(object? p0, object? p1)
689internal static ArgumentException FieldInfoNotDefinedForType(object? p0, object? p1, object? p2)
696internal static ArgumentException IncorrectNumberOfIndexes()
703internal static ArgumentException IncorrectNumberOfLambdaDeclarationParameters()
711internal static ArgumentException IncorrectNumberOfMembersForGivenConstructor()
718internal static ArgumentException IncorrectNumberOfArgumentsForMembers()
725internal static ArgumentException LambdaTypeMustBeDerivedFromSystemDelegate(string? paramName)
732internal static ArgumentException MemberNotFieldOrProperty(object? p0, string? paramName)
739internal static ArgumentException MethodContainsGenericParameters(object? p0, string? paramName)
746internal static ArgumentException MethodIsGeneric(object? p0, string? paramName)
753private static ArgumentException MethodNotPropertyAccessor(object? p0, object? p1, string? paramName)
760internal static ArgumentException MethodNotPropertyAccessor(object? p0, object? p1, string? paramName, int index)
767internal static ArgumentException PropertyDoesNotHaveGetter(object? p0, string? paramName)
774internal static ArgumentException PropertyDoesNotHaveGetter(object? p0, string? paramName, int index)
781internal static ArgumentException PropertyDoesNotHaveSetter(object? p0, string? paramName)
788internal static ArgumentException PropertyDoesNotHaveAccessor(object? p0, string? paramName)
795internal static ArgumentException NotAMemberOfType(object? p0, object? p1, string? paramName)
802internal static ArgumentException NotAMemberOfType(object? p0, object? p1, string? paramName, int index)
810internal static ArgumentException NotAMemberOfAnyType(object? p0, string? paramName)
818internal static ArgumentException ParameterExpressionNotValidAsDelegate(object? p0, object? p1)
825internal static ArgumentException PropertyNotDefinedForType(object? p0, object? p1, string? paramName)
832internal static ArgumentException InstancePropertyNotDefinedForType(object? p0, object? p1, string? paramName)
839internal static ArgumentException InstancePropertyWithoutParameterNotDefinedForType(object? p0, object? p1)
846internal static ArgumentException InstancePropertyWithSpecifiedParametersNotDefinedForType(object? p0, object? p1, object? p2, string? paramName)
853internal static ArgumentException InstanceAndMethodTypeMismatch(object? p0, object? p1, object? p2)
861internal static ArgumentException TypeMissingDefaultConstructor(object? p0, string? paramName)
869internal static ArgumentException ElementInitializerMethodNotAdd(string? paramName)
876internal static ArgumentException ElementInitializerMethodNoRefOutParam(object? p0, object? p1, string? paramName)
883internal static ArgumentException ElementInitializerMethodWithZeroArgs(string? paramName)
890internal static ArgumentException ElementInitializerMethodStatic(string? paramName)
897internal static ArgumentException TypeNotIEnumerable(object? p0, string? paramName)
905internal static ArgumentException UnhandledBinary(object? p0, string? paramName)
912internal static ArgumentException UnhandledBinding()
919internal static ArgumentException UnhandledBindingType(object? p0)
927internal static ArgumentException UnhandledUnary(object? p0, string? paramName)
934internal static ArgumentException UnknownBindingType(int index)
941internal static ArgumentException UserDefinedOpMustHaveConsistentTypes(object? p0, object? p1)
948internal static ArgumentException UserDefinedOpMustHaveValidReturnType(object? p0, object? p1)
955internal static ArgumentException LogicalOperatorMustHaveBooleanOperators(object? p0, object? p1)
990internal static ArgumentException IncorrectNumberOfTypeArgsForFunc(string? paramName)
997internal static ArgumentException IncorrectNumberOfTypeArgsForAction(string? paramName)
1004internal static ArgumentException ArgumentCannotBeOfTypeVoid(string? paramName)
1170internal static ArgumentException TestValueTypeDoesNotMatchComparisonMethodParameter(object? p0, object? p1)
1177internal static ArgumentException SwitchValueTypeDoesNotMatchComparisonMethodParameter(object? p0, object? p1)
1211internal static ArgumentException NonStaticConstructorRequired(string? paramName)
1243private static ArgumentException TypeContainsGenericParameters(object? p0, string? paramName)
1251internal static ArgumentException TypeContainsGenericParameters(object? p0, string? paramName, int index)
1259internal static ArgumentException TypeIsGeneric(object? p0, string? paramName)
1267internal static ArgumentException TypeIsGeneric(object? p0, string? paramName, int index)
1275internal static ArgumentException IncorrectNumberOfConstructorArguments()
1283internal static ArgumentException ExpressionTypeDoesNotMatchMethodParameter(object? p0, object? p1, object? p2, string? paramName)
1291internal static ArgumentException ExpressionTypeDoesNotMatchMethodParameter(object? p0, object? p1, object? p2, string? paramName, int index)
1299internal static ArgumentException ExpressionTypeDoesNotMatchParameter(object? p0, object? p1, string? paramName)
1307internal static ArgumentException ExpressionTypeDoesNotMatchParameter(object? p0, object? p1, string? paramName, int index)
1323internal static ArgumentException IncorrectNumberOfMethodCallArguments(object? p0, string? paramName)
1331internal static ArgumentException ExpressionTypeDoesNotMatchConstructorParameter(object? p0, object? p1, string? paramName)
1340internal static ArgumentException ExpressionTypeDoesNotMatchConstructorParameter(object? p0, object? p1, string? paramName, int index)
1348internal static ArgumentException ExpressionMustBeReadable(string? paramName)
1356internal static ArgumentException ExpressionMustBeReadable(string? paramName, int index)
1361internal static ArgumentException InvalidArgumentValue(string? paramName)
1366internal static ArgumentException NonEmptyCollectionRequired(string? paramName)
1371internal static ArgumentException InvalidNullValue(Type? type, string? paramName)
1376internal static ArgumentException InvalidTypeException(object? value, Type? type, string? paramName)
System.Linq.Parallel (2)
System.Linq.Queryable (7)
System.Memory (6)
System.Net.Http (18)
System.Net.Http.Json (1)
System.Net.Http.WinHttpHandler (1)
System.Net.HttpListener (5)
System.Net.Mail (23)
System.Net.NameResolution (36)
System.Net.Ping (6)
System.Net.Primitives (4)
System.Net.Quic (2)
System.Net.Requests (6)
System.Net.Security (5)
System.Net.ServerSentEvents (2)
System.Net.Sockets (3)
System.Net.WebClient (1)
System.Net.WebHeaderCollection (1)
System.Net.WebSockets (1)
System.Net.WebSockets.Client (1)
System.Numerics.Tensors (611)
System.Private.CoreLib (511)
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (44)
System.Private.Uri (6)
System.Private.Windows.Core (13)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Xml (59)
System.Private.Xml.Linq (8)
System.Reflection.DispatchProxy (2)
System.Reflection.Emit (5)
System.Reflection.Metadata (81)
System.Reflection.MetadataLoadContext (1)
System.Resources.Extensions (2)
System.Runtime (1)
System.Runtime.InteropServices (3)
System.Runtime.InteropServices.JavaScript (1)
System.Runtime.Numerics (4)
System.Security.Claims (3)
System.Security.Cryptography (587)
System\Security\Cryptography\DSA.cs (24)
119/// <exception cref="ArgumentException">
129ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
146ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
182/// <exception cref="ArgumentException">
203ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
244ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
265/// <exception cref="ArgumentException">
274ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
317ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
354/// <exception cref="ArgumentException">
377ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
388ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
543ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
574/// <exception cref="ArgumentException">
587ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
631ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
652/// <exception cref="ArgumentException">
666ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
689/// <exception cref="ArgumentException">
703ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
755ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
1124/// <exception cref="ArgumentException">
1169/// <exception cref="ArgumentException">
1240/// <exception cref="ArgumentException">
System\Security\Cryptography\ECDsa.cs (31)
60ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
96/// <exception cref="ArgumentException">
117ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
195/// <exception cref="ArgumentException">
204ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
226/// <exception cref="ArgumentException">
235ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
360/// <exception cref="ArgumentException">
392/// <exception cref="ArgumentException">
468ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
494/// <exception cref="ArgumentException">
507ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
549ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
567/// <exception cref="ArgumentException">
581ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
601/// <exception cref="ArgumentException">
613ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
639/// <exception cref="ArgumentException">
661ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
689/// <exception cref="ArgumentException">
709ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
737ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
774/// <exception cref="ArgumentException">
797ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
824/// <exception cref="ArgumentException">
834ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
843ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
872ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
919ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
941/// <exception cref="ArgumentException">
956ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System\Security\Cryptography\RSA.cs (19)
188/// <exception cref="ArgumentException">
275/// <exception cref="ArgumentException">
394ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
404ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
413ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
436/// <exception cref="ArgumentException">
458ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
489/// <exception cref="ArgumentException">
521ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
542/// <exception cref="ArgumentException">
564ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
591/// <exception cref="ArgumentException">
623ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
658ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
669ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
678ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
1010/// <exception cref="ArgumentException">
1063/// <exception cref="ArgumentException">
1134/// <exception cref="ArgumentException">
System.Security.Cryptography.Cose (53)
System.Security.Cryptography.Pkcs (57)
System.Security.Cryptography.ProtectedData (4)
System.Security.Principal.Windows (2)
System.ServiceModel.Federation (1)
System.ServiceModel.Http.Tests (4)
System.ServiceModel.Primitives (17)
System.ServiceModel.Primitives.Tests (6)
System.ServiceModel.Syndication (6)
System.Speech (11)
System.Text.Encodings.Web (1)
System.Text.Json (152)
System.Text.RegularExpressions (34)
System.Text.RegularExpressions.Generator (2)
System.Threading.AccessControl (8)
System.Threading.RateLimiting (2)
System.Threading.Tasks.Parallel (2)
System.Transactions.Local (1)
System.Windows.Forms (22)
System.Windows.Forms.Design (14)
System.Xaml (4)
UIAutomationClientSideProviders (3)
vstest.console (1)
vstest.console.arm64 (1)