10 types derived from ArgumentException
System.ComponentModel.Primitives (2)
System.Private.CoreLib (6)
System.Text.RegularExpressions (1)
System.Text.RegularExpressions.Generator (1)
4757 instantiations of ArgumentException
AndroidAppBuilder (22)
AppleAppBuilder (17)
AssemblyStripper (52)
ClientSample (2)
CodeGenerator (1)
Crossgen2Tasks (3)
dotnet-dev-certs (2)
dotnet-getdocument (2)
dotnet-openapi (14)
dotnet-sql-cache (3)
dotnet-user-jwts (3)
dotnet-user-secrets (3)
GetDocument.Insider (2)
http2cat (1)
IIS.Common.TestLib (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (1)
illink (32)
ILLink.RoslynAnalyzer (16)
ILLink.Tasks (6)
InMemory.FunctionalTests (2)
installer.tasks (3)
InteropClient (1)
LibraryBuilder (5)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.Antiforgery.Test (1)
Microsoft.AspNetCore.App.Analyzers (4)
Microsoft.AspNetCore.App.Analyzers.Test (5)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (5)
124throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw multiple occurrences of {0}", PositionString));
137throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", SpanEndString, SpanStartString));
151throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", NamedSpanEndString, NamedSpanStartString));
164throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", SpanStartString, SpanEndString));
169throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", NamedSpanEndString, NamedSpanEndString));
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Abstractions (2)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Components (21)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Microsoft.AspNetCore.Components.Endpoints (4)
Microsoft.AspNetCore.Components.Forms (8)
Microsoft.AspNetCore.Components.QuickGrid (2)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.Components.Server (7)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Components.Web (4)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.ConcurrencyLimiter (3)
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.Abstractions (5)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (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.HttpLogging (1)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.InternalTesting.Tests (1)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.JsonPatch.Tests (1)
Microsoft.AspNetCore.Localization (1)
Microsoft.AspNetCore.Mvc.Abstractions (6)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.AspNetCore.Mvc.Core (36)
Microsoft.AspNetCore.Mvc.Core.Test (5)
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.Razor (4)
Microsoft.AspNetCore.Mvc.RazorPages (9)
Microsoft.AspNetCore.Mvc.TagHelpers (6)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (18)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.OutputCaching (3)
Microsoft.AspNetCore.Owin (3)
Microsoft.AspNetCore.RateLimiting (3)
Microsoft.AspNetCore.RateLimiting.Tests (2)
Microsoft.AspNetCore.ResponseCaching (2)
Microsoft.AspNetCore.ResponseCompression (2)
Microsoft.AspNetCore.Rewrite (5)
Microsoft.AspNetCore.Routing (15)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IntegrationTesting (10)
Microsoft.AspNetCore.Server.Kestrel.Core (15)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Shared.Tests (9)
Microsoft.AspNetCore.SignalR.Common (3)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.SpaServices.Extensions (3)
Microsoft.AspNetCore.StaticFiles (2)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.WebUtilities (10)
Microsoft.Build (11)
Microsoft.Build.Conversion.Core (1)
Microsoft.Build.Engine (3)
Microsoft.Build.Engine.OM.UnitTests (4)
Microsoft.Build.Engine.UnitTests (11)
Microsoft.Build.Framework (20)
Microsoft.Build.Tasks.Core (32)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.UnitTests.Shared (1)
Microsoft.Build.Utilities.Core (9)
Microsoft.Cci.Extensions (3)
Microsoft.CSharp (2)
Microsoft.DotNet.AsmDiff (3)
Microsoft.DotNet.Build.Tasks.Feed (5)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.Build.Tasks.Workloads (7)
Microsoft.DotNet.Git.IssueManager (6)
Microsoft.DotNet.Helix.Client (5)
Microsoft.DotNet.Helix.JobSender (3)
Microsoft.DotNet.Helix.Sdk (3)
Microsoft.DotNet.SignCheckLibrary (3)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
Microsoft.DotNet.VersionTools (32)
Microsoft.DotNet.VersionTools.Tasks (4)
Microsoft.DotNet.VersionTools.Tests (8)
Microsoft.Extensions.Caching.Abstractions (2)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Caching.Memory (1)
Microsoft.Extensions.Caching.MicroBenchmarks (1)
Microsoft.Extensions.Caching.SqlServer (1)
Microsoft.Extensions.Configuration (2)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Binder (1)
Microsoft.Extensions.Configuration.CommandLine (3)
Microsoft.Extensions.Configuration.FileExtensions (1)
Microsoft.Extensions.Configuration.Ini (2)
Microsoft.Extensions.Configuration.Json (2)
Microsoft.Extensions.Configuration.UserSecrets (3)
Microsoft.Extensions.Configuration.Xml (2)
Microsoft.Extensions.DependencyInjection (8)
Microsoft.Extensions.DependencyInjection.Abstractions (2)
Microsoft.Extensions.DependencyModel (15)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.HealthChecks (4)
Microsoft.Extensions.FileProviders.Composite (1)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Extensions.FileSystemGlobbing (2)
Microsoft.Extensions.Hosting (2)
Microsoft.Extensions.Hosting.Abstractions (1)
Microsoft.Extensions.Hosting.Systemd (1)
Microsoft.Extensions.Hosting.WindowsServices (1)
Microsoft.Extensions.Http (3)
Microsoft.Extensions.Identity.Core (3)
Microsoft.Extensions.Logging (2)
Microsoft.Extensions.Logging.Abstractions (2)
Microsoft.Extensions.Logging.AzureAppServices (2)
Microsoft.Extensions.Logging.Configuration (1)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.Debug (1)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Logging.TraceSource (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Options.ConfigurationExtensions (1)
Microsoft.Extensions.Options.DataAnnotations (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (3)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.SourceGeneration (8)
Microsoft.JSInterop (7)
Microsoft.Net.Http.Headers (7)
Microsoft.NET.Sdk.WebAssembly.Pack.Tasks (4)
Microsoft.NET.StringTools.net35 (1)
Microsoft.NET.WebAssembly.Webcil (2)
Microsoft.VisualBasic.Core (2)
Microsoft.Web.Xdt.Extensions (3)
MobileBuildTasks (10)
MonoAOTCompiler (4)
MonoTargetsTasks (5)
MSBuild (4)
MSBuildTaskHost (4)
PresentationBuildTasks (14)
PresentationCore (694)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (22)
437throw new ArgumentException(SR.InvalidSizeSpecified, "cbSize");
447throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Custom Attribute tag embedded in ISF stream does not match guid table"), "tag");
454throw new ArgumentException(SR.InvalidSizeSpecified, "cbSize");
467throw new ArgumentException();
474throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected"), "cbSize");
495throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected"), "cbSize");
790throw new ArgumentException(SR.InvalidGuid);
797throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(System.Windows.Media.Color)), "value");
805throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(int)), "value");
813throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(DrawingFlags)), "value");
824throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(StylusTip), typeof(int)), "value");
828throw new ArgumentException(SR.Format(SR.InvalidValueOfType, value, typeof(StylusTip)), "value");
839throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(String), typeof(Matrix)), "value");
846throw new ArgumentException(SR.MatrixNotInvertible, "value");
850throw new ArgumentException(SR.InvalidMatrixContainsNaN, "value");
854throw new ArgumentException(SR.InvalidMatrixContainsInfinity, "value");
862throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(bool)), "value");
869throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(double)), "value");
893throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte)), "value");
906throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte[])), "value");
966throw new ArgumentException(SR.InvalidDataInISF, ex);
971throw new ArgumentException(SR.InvalidDataInISF, ex);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (60)
147throw new ArgumentException(SR.IsfOperationFailed, ex);
152throw new ArgumentException(SR.IsfOperationFailed, ex);
157throw new ArgumentException(SR.IsfOperationFailed, ex);
162throw new ArgumentException(SR.IsfOperationFailed, ex);
167throw new ArgumentException(SR.IsfOperationFailed, ex);
172throw new ArgumentException(SR.IsfOperationFailed, ex);
222throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "isfStream");
236throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected"), "isfStream");
241throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "isfStream");
357throw new ArgumentException(SR.InvalidStream);
376throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
400throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "inputStream");
487throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
521throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
584throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
597throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
619throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
633throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
682throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
756throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Global Custom Attribute tag embedded in ISF stream does not match guid table"), "inkdata");
766throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "inkdata");
780throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
795throw new ArgumentException(ISFDebugMessage("Invalid ISF data"));
813throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "inkdata");
844throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
849throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
862throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
872throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
904throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
917throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
927throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
944throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
953throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
976throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1006throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1011throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1019throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1029throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1061throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1070throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1078throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1110throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1118throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1145throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1183throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1204throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1222throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid argument passed to ReliableRead"));
1277throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1312throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1348throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1354throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1359throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1365throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1370throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1376throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1381throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1387throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm");
1604throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Button guid tag embedded in ISF stream does not match guid table"),"strd");
1620throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF with NoX or NoY specified"), "strd");
1644throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Packet Description Property tag embedded in ISF stream does not match guid table"), "strd");
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (15)
822return new System.ArgumentException(SR.Image_PropertyNotFound, exceptionForHR);
828return new System.ArgumentException(SR.Image_PropertySize, exceptionForHR);
840return new System.ArgumentException(SR.Image_TooManyScanlines, exceptionForHR);
846return new System.ArgumentException(SR.Image_BadDimensions, exceptionForHR);
860return new System.ArgumentException(SR.Image_FrameMissing, exceptionForHR);
863return new System.ArgumentException(SR.Image_BadMetadataHeader, exceptionForHR);
866return new System.ArgumentException(SR.Image_BadStreamData, exceptionForHR);
878return new System.ArgumentException(SR.Image_SizeOutOfRange, exceptionForHR);
908return new System.ArgumentException(SR.Image_InsufficientBuffer, exceptionForHR);
911return new System.ArgumentException(SR.Format(SR.Media_InvalidArgument, null), exceptionForHR);
954return new System.ArgumentException(SR.D3DImage_InvalidUsage, exceptionForHR);
956return new System.ArgumentException(SR.D3DImage_SurfaceTooBig, exceptionForHR);
958return new System.ArgumentException(SR.D3DImage_InvalidPool, exceptionForHR);
960return new System.ArgumentException(SR.D3DImage_InvalidDevice, exceptionForHR);
962return new System.ArgumentException(SR.D3DImage_AARequires9Ex, exceptionForHR);
System\Windows\Generated\ContentElement.cs (8)
80throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
88throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
94throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
149throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
156throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
161throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
538throw new ArgumentException(SR.HandlerTypeIllegal);
593throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Generated\UIElement.cs (8)
80throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
88throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
94throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
149throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
156throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
161throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
538throw new ArgumentException(SR.HandlerTypeIllegal);
593throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Ink\StrokeCollection.cs (13)
60throw new ArgumentException(SR.StrokeIsDuplicated, "strokes");
73throw new ArgumentException(SR.Image_StreamRead, "stream");
79throw new ArgumentException(SR.Invalid_isfData_Length, "stream");
97throw new ArgumentException(SR.Image_StreamWrite, "stream");
198throw new ArgumentException(SR.InvalidGuid, "propertyDataId");
236throw new ArgumentException(SR.MatrixNotInvertible, "transformMatrix");
328throw new ArgumentException(SR.StrokeIsDuplicated, "stroke");
346throw new ArgumentException(SR.StrokeIsDuplicated, "stroke");
402ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, "strokes");
446throw new ArgumentException(SR.StrokeIsDuplicated, "strokes");
494ArgumentException ae = new ArgumentException(SR.EmptyScToReplace, "strokesToReplace");
507ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, "strokesToReplace");
523throw new ArgumentException(SR.StrokeIsDuplicated, "strokesToReplaceWith");
System\Windows\Media\Animation\Generated\Animatable.cs (6)
86throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
94throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
100throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
155throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
162throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
167throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
System\Windows\Media\CharacterMetricsDictionary.cs (11)
139throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
157throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
196throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
199throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
214throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional);
219throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType));
381throw new ArgumentException(SR.Format(SR.CollectionDuplicateKey, key));
510throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, s, "int"), "key");
518throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), "int"), "key");
522throw new ArgumentException(SR.Format(SR.CodePointOutOfRange, value), "key");
535throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CharacterMetrics), value.GetType()));
System\Windows\Media\CultureSpecificStringDictionary.cs (8)
128throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
131throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
162throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
165throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
180throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional);
185throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType));
327throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(string)), "value");
340throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), typeof(XmlLanguage)), "key");
System\Windows\Media\FamilyMapCollection.cs (7)
90throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
93throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
104throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional);
108throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface), elementType));
111throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
114throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
380throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FontFamilyMap)));
System\Windows\Media\GlyphRun.cs (13)
413throw new ArgumentException(SR.ClusterMapEntriesShouldNotDecrease, "clusterMap");
416throw new ArgumentException(SR.ClusterMapEntryShouldPointWithinGlyphIndices, "clusterMap");
422throw new ArgumentException(SR.ClusterMapFirstEntryMustBeZero, "clusterMap");
427throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, characters.Count), "clusterMap");
433throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, GlyphCount), "clusterMap");
440throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, CodepointCount + 1), "caretStops");
444throw new ArgumentException(SR.SidewaysRTLTextIsNotSupported);
462throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, "glyphIndices");
466throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, MaxGlyphCount), "glyphIndices");
472throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "advanceWidths");
475throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "glyphOffsets");
1113throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, "value");
1143throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, "value");
System\Windows\Media3D\Generated\Visual3D.cs (6)
86throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
94throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
100throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
155throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
162throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
167throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
PresentationFramework (483)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (11)
111throw new ArgumentException(SR.Format(SR.SelectionDoesNotResolveToAPage, "start"), "selection");
118throw new ArgumentException(SR.Format(SR.SelectionDoesNotResolveToAPage, "end"), "selection");
205throw new ArgumentException(SR.StartNodeMustBeFixedPageProxy, "startNode");
293throw new ArgumentException(SR.StartNodeMustBeDocumentPageViewOrFixedPage, "startNode");
315throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute));
461throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}");
467throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}");
487throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}");
505throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
509throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
513throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
System\Windows\Application.cs (11)
389throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString"));
392throw new ArgumentException(SR.AbsoluteUriNotAllowed);
478throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString"));
481throw new ArgumentException(SR.AbsoluteUriNotAllowed);
613throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriResource", "OriginalString"));
617throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed);
645throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriContent", "OriginalString"));
649throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed);
674throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriRemote", "OriginalString"));
680throw new ArgumentException(SR.NonPackSooAbsoluteUriNotAllowed);
1649throw new ArgumentException(SR.Format(SR.WindowPassedShouldBeOnApplicationThread, window.GetType().FullName, this.GetType().FullName));
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (9)
81throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(),
126throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType1, value.GetType(),
164throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(NamedElement)), "value");
213throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(ListItemStructure)), nameof(value));
255throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(),
308throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowGroupStructure)), "value");
350throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowStructure)), nameof(value));
393throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableCellStructure)), nameof(value));
437throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(),
System\Windows\Documents\TextElement.cs (6)
105throw new ArgumentException(SR.TextElement_UnmatchedEndPointer);
131throw new ArgumentException(SR.Format(SR.InDifferentScope, "start", "end"));
824throw new ArgumentException(SR.Format(SR.TextSchema_ThisInlineUIContainerHasAChildUIElementAlready, this.GetType().Name, ((InlineUIContainer)this).Child.GetType().Name, value.GetType().Name));
836throw new ArgumentException(SR.Format(SR.TextSchema_ThisBlockUIContainerHasAChildUIElementAlready, this.GetType().Name, ((BlockUIContainer)this).Child.GetType().Name, value.GetType().Name));
852throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name));
859throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name));
System\Windows\Documents\TextElementCollection.cs (11)
256throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name));
295throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name));
324throw new ArgumentException(SR.TextElementCollection_NoEnumerator, "range");
338throw new ArgumentException(SR.Format(SR.TextElementCollection_ItemHasUnexpectedType, "range", typeof(TextElementType).Name, typeof(TextElementType).Name), "value");
401throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), "value");
456throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), "value");
466throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name));
567throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), "value");
605throw new ArgumentException("array");
612throw new ArgumentException("arrayIndex");
617throw new ArgumentException(SR.Format(SR.TextElementCollection_CannotCopyToArrayNotSufficientMemory, count, arrayIndex, array.Length));
System\Windows\Documents\TextRangeBase.cs (6)
69throw new ArgumentException(SR.NotInAssociatedTree, "textPointer");
1542throw new ArgumentException(SR.Format(SR.TextRange_UnsupportedDataFormat, dataFormat), "dataFormat");
1576throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), "stream");
1588throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), "stream");
1593throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), "stream");
1600throw new ArgumentException(SR.Format(SR.TextRange_UnsupportedDataFormat, dataFormat), "dataFormat");
System\Windows\Standard\Verify.cs (16)
71throw new ArgumentException(errorMessage, name);
96throw new ArgumentException(errorMessage, name);
110throw new ArgumentException("The parameter must not be the default value.", name);
138throw new ArgumentException("The parameter must be null.", name);
173throw new ArgumentException("", name);
189throw new ArgumentException(message, name);
202throw new ArgumentException(message, parameterName);
207throw new ArgumentException(message, parameterName);
220throw new ArgumentException(message, parameterName);
225throw new ArgumentException(message, parameterName);
236throw new ArgumentException("The URI must be absolute.", parameterName);
252throw new ArgumentException(string.Create(CultureInfo.InvariantCulture, $"The integer value must be bounded with [{lowerBoundInclusive}, {upperBoundExclusive})"), parameterName);
262throw new ArgumentException(message, parameter);
276throw new ArgumentException("The type of this parameter does not support a required interface", parameterName);
287throw new ArgumentException($"No file exists at \"{filePath}\"", parameterName);
311throw new ArgumentException($"The parameter must implement interface {interfaceType}.", parameterName);
PresentationUI (3)
ReachFramework (20)
ResultsOfTGenerator (1)
Sockets.BindTests (1)
Sockets.FunctionalTests (1)
Swaggatherer (2)
System.Collections (63)
System\Collections\Generic\SortedDictionary.cs (15)
334throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value));
339throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key));
363throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value));
368throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key));
550throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
562throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
567throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
574throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
590throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
711throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
723throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
728throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
735throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
751throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
904throw 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));
626throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value));
1054throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
1063throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
1168throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
1177throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System.Collections.Concurrent (21)
System.Collections.Immutable (24)
System.Collections.NonGeneric (10)
System.Collections.Specialized (9)
System.ComponentModel.Annotations (5)
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));
102return new ArgumentException(SR.Format(SR.ReflectionModel_InvalidPartDefinition, partDefinitionType), parameterName);
111throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(typeName)), nameof(typeName));
116return new ArgumentException(message, typeName);
System.ComponentModel.Composition.Registration (2)
System.ComponentModel.TypeConverter (73)
System.Composition.Convention (12)
System.Composition.Hosting (2)
System.Console (3)
System.Data.Common (16)
System.Diagnostics.DiagnosticSource (6)
System.Diagnostics.Process (2)
System.Diagnostics.TraceSource (5)
System.Drawing.Primitives (4)
System.Formats.Asn1 (27)
System.Formats.Cbor (5)
System.Formats.Tar (21)
System.IO.Compression (9)
System.IO.Compression.Brotli (4)
System.IO.Compression.ZipFile (2)
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)));
257throw new ArgumentException(SR.Format(SR.InvalidDirName, value), nameof(Path));
260throw new ArgumentException(SR.Format(SR.InvalidDirName_NotExists, value), nameof(Path));
379throw new ArgumentException(SR.Format(SR.InvalidDirName, path), nameof(path));
382throw new ArgumentException(SR.Format(SR.InvalidDirName_NotExists, path), nameof(path));
System.IO.Hashing (1)
System.IO.IsolatedStorage (4)
System.IO.MemoryMappedFiles (11)
System.IO.Pipes (8)
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 (2)
System.Linq.Queryable (2)
System.Memory (3)
System.Net.Http (7)
System.Net.Http.Json (2)
System.Net.HttpListener (16)
System.Net.Mail (7)
System.Net.NameResolution (5)
System.Net.Ping (2)
System.Net.Primitives (9)
System.Net.Quic (5)
System.Net.Requests (23)
System\Net\HttpWebRequest.cs (10)
381throw new ArgumentException(SR.net_invalid_host, nameof(value));
475throw new ArgumentException(SR.net_nochunked, nameof(value));
613throw new ArgumentException(SR.net_connarg, nameof(value));
662throw new ArgumentException(SR.net_no100, nameof(value));
834throw new ArgumentException(SR.net_wrongversion, nameof(value));
935throw new ArgumentException(SR.net_badmethod, nameof(value));
1145throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult));
1416throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult));
1504throw new ArgumentException(SR.net_nottoken, nameof(rangeSpecifier));
1523throw new ArgumentException(SR.net_nottoken, nameof(rangeSpecifier));
System.Net.Security (14)
System.Net.Sockets (42)
System\Net\Sockets\Socket.cs (28)
239throw new ArgumentException(SR.Arg_InvalidHandle, nameof(handle));
900throw new ArgumentException(SR.net_sockets_invalid_ipaddress_length, nameof(addresses));
938throw new ArgumentException(SR.net_invalidAddressList, nameof(addresses));
1093throw new ArgumentException(SR.Format(SR.net_sockets_zerolist, nameof(buffers)), nameof(buffers));
1532throw new ArgumentException(SR.Format(SR.net_sockets_zerolist, nameof(buffers)), nameof(buffers));
1646throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, remoteEP.AddressFamily, _addressFamily), nameof(remoteEP));
2006throw new ArgumentException(SR.Format(SR.net_sockets_invalid_optionValue, "LingerOption"), nameof(optionValue));
2010throw new ArgumentException(SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper_Named, 0, (int)ushort.MaxValue, "optionValue.LingerTime"), nameof(optionValue));
2019throw new ArgumentException(SR.Format(SR.net_sockets_invalid_optionValue, "MulticastOption"), nameof(optionValue));
2029throw new ArgumentException(SR.Format(SR.net_sockets_invalid_optionValue, "IPv6MulticastOption"), nameof(optionValue));
2035throw new ArgumentException(SR.net_sockets_invalid_optionValue_all, nameof(optionValue));
2192throw new ArgumentException(SR.net_sockets_invalid_optionValue_all, nameof(level));
2542throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPoint.AddressFamily, _addressFamily), nameof(endPoint));
2578throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPoint.AddressFamily, _addressFamily), nameof(endPoint));
2683throw new ArgumentException(SR.net_multibuffernotsupported, nameof(e));
2732throw new ArgumentException(SR.net_multibuffernotsupported, "BufferList");
2830throw new ArgumentException(SR.net_multibuffernotsupported, nameof(e));
2834throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
2938throw new ArgumentException(SR.Format(SR.net_sockets_invalid_dnsendpoint, "e.RemoteEndPoint"), nameof(e));
2943throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
2947throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPointSnapshot.AddressFamily, _addressFamily), nameof(e));
2992throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
2996throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, e.RemoteEndPoint.AddressFamily, _addressFamily), nameof(e));
3064throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.SendPacketsElements"), nameof(e));
3102throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
3184throw new ArgumentException(SR.Format(SR.net_sockets_invalid_dnsendpoint, nameof(remoteEP)), nameof(remoteEP));
3783throw new ArgumentException(SR.Format(SR.net_sockets_invalid_dnsendpoint, remoteEndPointArgumentName), remoteEndPointArgumentName);
3788throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, remoteEndPoint.AddressFamily, _addressFamily), remoteEndPointArgumentName);
System.Net.WebClient (1)
System.Net.WebHeaderCollection (7)
System.Net.WebSockets (10)
System.Net.WebSockets.Client (9)
System.Numerics.Tensors (31)
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 (870)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (9)
406throw new ArgumentException(SR.Format(SR.Argument_EnumTypeDoesNotMatch, flag.GetType(), GetType()));
889throw new ArgumentException(SR.Arg_MustBeEnum, nameof(TEnum));
1123throw new ArgumentException(SR.Format(SR.Arg_EnumValueNotFound, originalValue.ToString()));
1291throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, target.GetType(), GetType()));
1638throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, rtType));
1651throw new ArgumentException(SR.Format(SR.Arg_EnumFormatUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType));
2149throw new ArgumentException(enumType is not RuntimeType ? SR.Arg_MustBeType : SR.Arg_MustBeEnum, nameof(enumType));
2152throw new ArgumentException(SR.Arg_MustContainEnumInfo, "value");
2224throw new ArgumentException(SR.Arg_MustBeEnumBaseTypeOrEnum, nameof(value));
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (11)
1060throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value));
1085throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value));
1105throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value));
1127throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value));
1148throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value));
1353throw new ArgumentException(SR.Format(SR.Format_BadFormatSpecifier, format), nameof(format));
1631throw new ArgumentException(SR.Arg_ArrayZeroError, nameof(patterns));
1677throw new ArgumentException(SR.Format(SR.Format_BadFormatSpecifier, format), nameof(format));
1693throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value));
1714throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value));
1775throw new ArgumentException(message, styles ? nameof(styles) : nameof(style));
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (37)
79throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
83throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, index + count - 1), nameof(unicode));
128throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
204throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, unicode.Length - 1), nameof(unicode));
222throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
232throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, i), nameof(unicode));
244throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
248throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
268throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
272throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize,
311throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
333throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
362throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode));
381throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode));
388throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode));
414throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(unicode));
499throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode));
511throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize,
538throw new ArgumentException(SR.Format(SR.Argument_IdnBadStd3, c), nameof(c));
553throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(ascii));
583throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii));
587throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize,
610throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii));
618throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii));
638throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
653throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
688throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
695throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
703throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
714throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
720throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
735throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii));
779throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(ascii));
786throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(ascii));
792throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii));
804throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize, c_defaultNameLimit - (IsDot(output[output.Length - 1]) ? 0 : 1)), nameof(ascii));
827throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(cp));
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.Format(SR.Argument_CustomCultureCannotBePassedByNumber, culture), nameof(culture));
75throw new ArgumentException(SR.Format(SR.Argument_CultureIsNeutral, culture), nameof(culture));
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (16)
90throw new ArgumentException(SR.Arg_EmptyArray, nameof(names));
128throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeOptionalCustomModifiers), nameof(parameterTypes)));
131throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeRequiredCustomModifiers), nameof(parameterTypes)));
331throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type));
343throw new ArgumentException(SR.Argument_NeedGenericMethodDefinition, nameof(method));
348throw new ArgumentException(SR.Argument_MethodNeedGenericDeclaringType, nameof(method));
353throw new ArgumentException(SR.Argument_InvalidMethodDeclaringType, nameof(type));
366throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type));
378throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type));
383throw new ArgumentException(SR.Argument_ConstructorNeedGenericDeclaringType, nameof(constructor));
388throw new ArgumentException(SR.Argument_InvalidConstructorDeclaringType, nameof(type));
399throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type));
411throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type));
416throw new ArgumentException(SR.Argument_FieldNeedGenericDeclaringType, nameof(field));
421throw new ArgumentException(SR.Argument_InvalidFieldDeclaringType, nameof(type));
432throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (14)
112throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(t));
116throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(t));
127throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(T));
571throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(structureType));
575throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(structureType));
619throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(T));
1057throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type));
1074throw new ArgumentException(SR.Argument_TypeMustNotBeComImport, nameof(type));
1078throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type));
1100throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(t));
1104throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(t));
1112throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(t));
1125throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(TDelegate));
1133throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(TDelegate));
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\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (25)
46throw new ArgumentException(SR.Argument_HasToBeArrayClass);
63throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType));
105throw new ArgumentException(SR.Arg_MustBeEnumBaseTypeOrEnum, nameof(value));
114throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
196throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType));
214throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, this));
229throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType));
324throw new ArgumentException(SR.Arg_NoAccessSpec, nameof(bindingFlags));
341throw new ArgumentException(SR.Arg_NamedParamTooBig, nameof(namedParams));
346throw new ArgumentException(SR.Arg_NamedParamTooBig, nameof(namedParams));
399throw new ArgumentException(SR.Arg_NamedParamNull, nameof(namedParams));
410throw new ArgumentException(SR.Arg_CreatInstAccess, nameof(bindingFlags));
435throw new ArgumentException(SR.Arg_FldSetGet, nameof(bindingFlags));
438throw new ArgumentException(SR.Arg_FldGetPropSet, nameof(bindingFlags));
447throw new ArgumentException(SR.Arg_FldSetPropGet, nameof(bindingFlags));
450throw new ArgumentException(SR.Arg_FldSetInvoke, nameof(bindingFlags));
496throw new ArgumentException(SR.Arg_IndexMustBeInt);
519throw new ArgumentException(SR.Arg_FldGetArgErr, nameof(bindingFlags));
526throw new ArgumentException(SR.Arg_FldSetArgErr, nameof(bindingFlags));
548throw new ArgumentException(SR.Arg_PropSetGet, nameof(bindingFlags));
557throw new ArgumentException(SR.Arg_PropSetInvoke, nameof(bindingFlags));
721throw new ArgumentException(
736throw new ArgumentException(
804throw new ArgumentException(SR.Format(SR.Arg_ObjObjEx, value?.GetType(), this));
875throw new ArgumentException(SR.Format(SR.Arg_ObjObjEx, value?.GetType(), this));
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (19)
89throw new ArgumentException(SR.Format(SR.Argument_InvalidTypeWithPointersNotSupported, targetType));
107throw new ArgumentException(SR.Argument_DestinationTooShort, "destination");
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));
290throw new ArgumentException(SR.Arg_CannotBeNaN);
296throw new ArgumentException(SR.Arg_CannotBeNaN, GetArgumentName(argument));
315return new ArgumentException(SR.Format(SR.Argument_AddingDuplicateWithKey, key));
347throw new ArgumentException(SR.Arg_HandleNotSync, paramName);
353throw new ArgumentException(SR.Arg_HandleNotAsync, paramName);
530throw new ArgumentException(SR.Argument_IncompatibleArrayType);
536throw new ArgumentException(SR.Arg_InvalidHandle, paramName);
721return new ArgumentException(SR.Argument_InvalidOffLen);
726return new ArgumentException(GetResourceString(resource));
736return new ArgumentException(SR.Format(SR.Arg_WrongType, key, targetType), nameof(key));
741return new ArgumentException(SR.Format(SR.Arg_WrongType, value, targetType), nameof(value));
756return new ArgumentException(GetResourceString(resource), GetArgumentName(argument));
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\System\Delegate.CoreCLR.cs (22)
51throw new ArgumentException(SR.Arg_DlgtTargMeth);
63throw new ArgumentException(SR.Arg_UnboundGenParam, nameof(target));
65throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(target));
223throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type));
225throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type));
242throw new ArgumentException(SR.Arg_DlgtTargMeth);
258throw new ArgumentException(SR.Arg_UnboundGenParam, nameof(target));
260throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type));
262throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(target));
265throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type));
278throw new ArgumentException(SR.Arg_DlgtTargMeth);
293throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type));
296throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(method));
299throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type));
316throw new ArgumentException(SR.Arg_DlgtTargMeth);
328throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type));
331throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(method));
334throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type));
348throw new ArgumentException(SR.Arg_DlgtTargMeth);
366throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type));
369throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type));
382throw new ArgumentException(SR.Arg_DlgtTargMeth);
src\System\Reflection\Emit\DynamicILGenerator.cs (15)
44throw new ArgumentException(SR.Argument_MustBeRuntimeType);
69throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(meth));
82throw new ArgumentException(SR.Argument_InvalidOpCodeOnDynamicMethod);
117throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(con));
143throw new ArgumentException(SR.Argument_MustBeRuntimeType);
157throw new ArgumentException(SR.Argument_MustBeRuntimeFieldInfo, nameof(field));
260throw new ArgumentException(SR.Argument_NotMethodCallOpcode, nameof(opcode));
263throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(methodInfo));
266throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(methodInfo));
355throw new ArgumentException(SR.Argument_ShouldNotSpecifyExceptionType);
368throw new ArgumentException(SR.Argument_MustBeRuntimeType);
417throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(methodInfo));
484throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(requiredCustomModifiers), nameof(parameterTypes)));
487throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(optionalCustomModifiers), nameof(parameterTypes)));
1036throw new ArgumentException(SR.Format(SR.Argument_MethodDeclaringTypeGenericLcg, m, t));
src\System\Reflection\Emit\SignatureHelper.cs (19)
101throw new ArgumentException(SR.Argument_UnknownUnmanagedCallConv, nameof(unmanagedCallConv));
196throw new ArgumentException(SR.Argument_BadFieldSig);
225throw new ArgumentException(SR.NotSupported_MustBeModuleBuilder);
285throw new ArgumentException(SR.Argument_ArraysInvalid, nameof(optionalCustomModifiers));
288throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(optionalCustomModifiers));
307throw new ArgumentException(SR.Argument_ArraysInvalid, nameof(requiredCustomModifiers));
310throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(requiredCustomModifiers));
487throw new ArgumentException(SR.Argument_LargeInteger);
512throw new ArgumentException(SR.Argument_LargeInteger);
723throw new ArgumentException(SR.Argument_LargeInteger);
745throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(optionalCustomModifiers));
748throw new ArgumentException(SR.Argument_ArraysInvalid, nameof(optionalCustomModifiers));
751throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(optionalCustomModifiers));
768throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(requiredCustomModifiers));
771throw new ArgumentException(SR.Argument_ArraysInvalid, nameof(requiredCustomModifiers));
774throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(requiredCustomModifiers));
806throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(requiredCustomModifiers), nameof(arguments)));
809throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(optionalCustomModifiers), nameof(arguments)));
823throw new ArgumentException(SR.Argument_SigIsFinalized);
src\System\Reflection\RuntimeModule.cs (21)
38throw new ArgumentException(SR.Argument_InvalidGenericInstArray);
41throw new ArgumentException(SR.Argument_InvalidGenericInstArray);
43throw new ArgumentException(SR.Argument_InvalidGenericInstArray);
59throw new ArgumentException(SR.Format(SR.Argument_InvalidToken, tk, this),
85throw new ArgumentException(SR.Format(SR.Argument_ResolveMethod, tk, this),
93throw new ArgumentException(SR.Format(SR.Argument_ResolveMethod, tk, this),
128throw new ArgumentException(SR.Argument_BadImageFormatExceptionResolve, e);
156throw new ArgumentException(SR.Format(SR.Argument_ResolveField, tk, this), nameof(metadataToken));
186throw new ArgumentException(SR.Format(SR.Argument_ResolveField, tk, this),
194throw new ArgumentException(SR.Format(SR.Argument_ResolveField, tk, this),
217throw new ArgumentException(SR.Argument_BadImageFormatExceptionResolve, e);
229throw new ArgumentException(SR.Format(SR.Argument_ResolveModuleType, tk), nameof(metadataToken));
232throw new ArgumentException(SR.Format(SR.Argument_ResolveType, tk, this), nameof(metadataToken));
249throw new ArgumentException(SR.Argument_BadImageFormatExceptionResolve, e);
259throw new ArgumentException(SR.InvalidOperation_PropertyInfoNotAvailable);
262throw new ArgumentException(SR.InvalidOperation_EventInfoNotAvailable);
294throw new ArgumentException(SR.Format(SR.Argument_ResolveMember, tk, this),
303throw new ArgumentException(
313throw new ArgumentException(
370throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType));
380throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType));
src\System\Runtime\InteropServices\Marshal.CoreCLR.cs (10)
44throw new ArgumentException(SR.Format(SR.Argument_OffsetOfFieldNotFound, t.FullName), nameof(fieldName));
49throw new ArgumentException(SR.Argument_MustBeRuntimeFieldInfo, nameof(fieldName));
218throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(m));
251throw new ArgumentException(SR.Argument_NeedNonGenericObject, nameof(structure));
256throw new ArgumentException(SR.Argument_MustHaveLayoutOrBeBlittable, nameof(structure));
281throw new ArgumentException(SR.Argument_StructMustNotBeValueClass, nameof(structure));
286throw new ArgumentException(SR.Argument_MustHaveLayoutOrBeBlittable, nameof(structure));
310throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(structuretype));
313throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(structuretype));
318throw new ArgumentException(SR.Argument_MustHaveLayoutOrBeBlittable, nameof(structuretype));
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.Uri (7)
System.Private.Xml (180)
System\Xml\Core\XmlWellFormedWriter.cs (23)
345throw new ArgumentException(SR.Xml_NoRoot);
393throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(pubid, i)), nameof(pubid));
400throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(sysid, i)), nameof(sysid));
407throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(subset, i)), nameof(subset));
448throw new ArgumentException(SR.Xml_PrefixForEmptyNs);
613throw new ArgumentException(SR.Xml_EmptyLocalName);
648throw new ArgumentException(SR.Xml_XmlnsPrefix);
671throw new ArgumentException(SR.Xml_XmlnsPrefix);
681throw new ArgumentException(SR.Xml_XmlPrefix);
778throw new ArgumentException(SR.Xml_PrefixForEmptyNs);
782throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace);
825throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value));
900throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? SR.Xml_DupXmlDecl : SR.Xml_CannotWriteXmlDecl);
960throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar);
1013throw new ArgumentException(SR.Xml_NonWhitespace);
1294throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
1616throw new ArgumentException(SR.Xml_XmlPrefix);
1626throw new ArgumentException(SR.Xml_XmlnsPrefix);
1643throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix));
1727throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix));
1735throw new ArgumentException(SR.Xml_XmlPrefix);
1740throw new ArgumentException(SR.Xml_XmlnsPrefix);
2067return new ArgumentException(SR.Format(SR.Xml_InvalidNameCharsDetail, args));
System\Xml\Core\XmlWellFormedWriterAsync.cs (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)
972throw new ArgumentException(SR.Format(SR.XmlEmptyArrayType, CurrentTag()), nameof(value));
985throw new ArgumentException(SR.XmlInvalidArraySyntax, nameof(value));
993throw new ArgumentException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()), nameof(value));
998throw new ArgumentException(SR.XmlMismatchedArrayBrackets, nameof(value));
1006throw new ArgumentException(SR.Format(SR.XmlInvalidArrayLength, new string(lengthStringSpan)), nameof(value));
1020throw new ArgumentException(SR.XmlMismatchedArrayBrackets, nameof(value));
1022throw new ArgumentException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()), nameof(value));
1024throw new ArgumentException(SR.XmlInvalidArraySyntax, nameof(value));
1074throw new ArgumentException(SR.Format(SR.XmlInvalidArrayLength, dimensions[i]), "value");
2321throw new ArgumentException(SR.XmlInternalError, nameof(xmlMapping));
2327throw 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 (48)
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 (12)
293throw new ArgumentException(SR.Argument_BadSizeForData, nameof(data.Length));
321throw new ArgumentException(SR.ArgumentException_BadMethodImplBody);
330throw new ArgumentException(SR.Format(SR.Argument_MethodOverriden, methodInfoBody.Name, FullName), nameof(methodInfoDeclaration));
371new ArgumentException(SR.Format(SR.Argument_InvalidMethodOverride, FullName, methodName), "methodInfoBody");
386throw new ArgumentException(SR.Argument_BadPInvokeMethod);
391throw new ArgumentException(SR.Argument_BadPInvokeOnInterface);
403throw new ArgumentException(SR.Argument_MethodRedefined);
433throw new ArgumentException(SR.Argument_BadSizeForData, nameof(size));
552throw new ArgumentException(SR.Format(SR.Argument_UnknownNamedType, con.DeclaringType, name), nameof(binaryAttribute));
567throw new ArgumentException(SR.Argument_CannotSetParentToInterface);
979throw new ArgumentException(SR.Argument_MustBeInterface, nameof(interfaceType));
984throw new ArgumentException(SR.Argument_InterfaceNotFound, nameof(interfaceType));
System.Reflection.Metadata (39)
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)
256throw new ArgumentException(SR.Invalid_expiration_combination, nameof(policy));
265throw new ArgumentException(SR.Invalid_callback_combination, nameof(policy));
354throw new ArgumentException(SR.Empty_string_invalid, nameof(name));
358throw new ArgumentException(SR.Default_is_reserved, nameof(name));
375throw new ArgumentException(SR.Empty_string_invalid, nameof(name));
379throw new ArgumentException(SR.Default_is_reserved, nameof(name));
415throw new ArgumentException(SR.Update_callback_must_be_null, nameof(policy));
456throw new ArgumentException(RH.Format(SR.Empty_collection, nameof(keys)));
463throw new ArgumentException(RH.Format(SR.Collection_contains_null_element, nameof(keys)));
738throw new ArgumentException(SR.Invalid_argument_combination);
863throw new ArgumentException(RH.Format(SR.Collection_contains_null_element, nameof(keys)));
System.Runtime.InteropServices (4)
System.Runtime.Numerics (6)
System.Runtime.Serialization.Formatters (11)
System.Security.Cryptography (308)
System\Security\Cryptography\HKDF.cs (6)
54throw new ArgumentException(SR.Format(SR.Cryptography_Prk_TooSmall, hashLength), nameof(prk));
117throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(output));
122throw new ArgumentException(SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength), nameof(output));
132throw new ArgumentException(SR.Format(SR.Cryptography_Prk_TooSmall, hashLength), nameof(prk));
246throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(output));
251throw new ArgumentException(SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength), nameof(output));
System\Security\Cryptography\SymmetricAlgorithm.cs (11)
328throw new ArgumentException(SR.Cryptography_MatchBlockSize, nameof(plaintextLength));
399throw new ArgumentException(SR.Argument_BitsMustBeWholeBytes, nameof(feedbackSizeInBits));
407throw new ArgumentException(SR.Cryptography_MatchFeedbackSize, nameof(plaintextLength));
515throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
633throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
777throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
930throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
1151throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
1383throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
1625throw new ArgumentException(SR.Cryptography_InvalidIVSize, nameof(iv));
1632throw new ArgumentException(SR.Cryptography_InvalidFeedbackSize, nameof(feedbackSizeInBits));
System.Security.Cryptography.Cose (37)
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\CoseSign1Message.cs (10)
170throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent));
173throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
224throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent));
227throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
312throw new ArgumentException(SR.Sign1SignHeaderDuplicateLabels, nameof(signer));
317throw new ArgumentException(SR.Format(SR.CriticalHeaderMissing, labelName), nameof(signer));
593throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent));
598throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
694throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent));
699throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
System.Text.Encoding.CodePages (13)
System.Text.Encodings.Web (1)
System.Text.Json (26)
System\Text\Json\ThrowHelper.Serialization.cs (5)
21throw new ArgumentException(SR.Format(SR.DeserializeWrongType, type, value.GetType()));
27throw new ArgumentException(SR.JsonSerializerDoesNotSupportComments, paramName);
138throw new ArgumentException(SR.Format(SR.CannotSerializeInvalidType, typeToConvert), paramName);
142throw new ArgumentException(SR.Format(SR.CannotSerializeInvalidMember, typeToConvert, propertyName, declaringType), paramName);
898throw new ArgumentException(SR.JsonPolymorphismOptionsAssociatedWithDifferentJsonTypeInfo, paramName: parameterName);
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (2)
System.Text.RegularExpressions.Generator (1)
System.Threading.RateLimiting (14)
System.Threading.Tasks.Dataflow (40)
Base\DataflowBlock.cs (11)
153if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
645if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
690if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
707if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
1182if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
1183if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
1495if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
2183if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
2184if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
2699if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
2704if (source == null) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
System.Threading.Tasks.Parallel (1)
System.Transactions.Local (17)
System.Windows.Controls.Ribbon (7)
System.Xaml (60)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (6)
334throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
608throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
1081throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
1120throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
1405throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
1480throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
Templates.Blazor.Tests (3)
Templates.Blazor.WebAssembly.Auth.Tests (3)
Templates.Blazor.WebAssembly.Tests (3)
Templates.Mvc.Tests (3)
Templates.Tests (3)
TestExclusionListTasks (19)
UIAutomationClient (21)
UIAutomationClientSideProviders (7)
UIAutomationProvider (2)
UIAutomationTypes (1)
VersioningWebSite (1)
Wasm.Performance.ConsoleHost (2)
WasmAppBuilder (4)
WindowsFormsIntegration (2)
WorkloadBuildTasks (4)
xunit.console (35)
3440 references to ArgumentException
BasicTestApp (1)
dotnet-openapi (11)
dotnet-sql-cache (2)
dotnet-user-jwts (1)
dotnet-user-secrets (1)
illink (2)
src\tools\illink\external\corert\src\System.Private.CoreLib\src\System\Reflection\Runtime\TypeParsing\TypeParser.cs (1)
23 catch (ArgumentException)
InMemory.FunctionalTests (1)
InProcessWebSite (2)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore.Authentication.Facebook (2)
Microsoft.AspNetCore.Authentication.Negotiate (2)
Microsoft.AspNetCore.Authentication.OAuth (4)
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
Microsoft.AspNetCore.Authentication.Test (3)
Microsoft.AspNetCore.Authentication.Twitter (2)
Microsoft.AspNetCore.Components (5)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Forms.Tests (4)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Components.Server.Tests (3)
Microsoft.AspNetCore.Components.Tests (24)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.Extensions (4)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Hosting.Tests (1)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Results (4)
Microsoft.AspNetCore.Http.Results.Tests (7)
Microsoft.AspNetCore.Http.Tests (3)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.HttpLogging.Tests (2)
Microsoft.AspNetCore.HttpOverrides (8)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (4)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Identity.Test (3)
Microsoft.AspNetCore.InternalTesting (20)
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.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.Core (19)
Microsoft.AspNetCore.Mvc.Core.Test (11)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.Razor (5)
Microsoft.AspNetCore.Mvc.RazorPages (40)
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
Microsoft.AspNetCore.Mvc.ViewFeatures (9)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (6)
Microsoft.AspNetCore.OutputCaching.Tests (2)
Microsoft.AspNetCore.Owin.Tests (1)
Microsoft.AspNetCore.RateLimiting.Tests (2)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.Rewrite (10)
Microsoft.AspNetCore.Rewrite.Tests (1)
Microsoft.AspNetCore.Routing (12)
Microsoft.AspNetCore.Routing.Tests (27)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.HttpSys.Tests (1)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IISIntegration (1)
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Microsoft.AspNetCore.Server.Kestrel.Tests (6)
Microsoft.AspNetCore.Session (2)
Microsoft.AspNetCore.Shared.Tests (8)
Microsoft.AspNetCore.SignalR.Client.Tests (5)
Microsoft.AspNetCore.SignalR.Common (2)
Microsoft.AspNetCore.SignalR.Tests (3)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.AspNetCore.SpaServices.Extensions (9)
Microsoft.AspNetCore.WebUtilities.Tests (4)
Microsoft.Build (33)
Microsoft.Build.CommandLine.UnitTests (1)
Microsoft.Build.Engine (20)
Microsoft.Build.Engine.OM.UnitTests (35)
Microsoft.Build.Engine.UnitTests (17)
Microsoft.Build.Framework (6)
Microsoft.Build.Framework.UnitTests (1)
Microsoft.Build.Tasks.Core (63)
Microsoft.Build.Tasks.UnitTests (7)
Microsoft.Build.Utilities.Core (12)
Microsoft.Build.Utilities.UnitTests (64)
ToolLocationHelper_Tests.cs (57)
727Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey((TargetDotNetFrameworkVersion)99, vsVersion));
733Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(dotNetVersion, (VisualStudioVersion)99));
745Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version30, vsVersion));
777Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100));
778Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110));
783Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version100));
784Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version110));
789Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100));
790Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110));
791Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120));
795Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version100));
796Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version110));
797Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version120));
801Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version100));
802Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version110));
803Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version120));
807Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version100));
808Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version110));
809Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version120));
813Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version100));
814Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version110));
815Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version120));
819Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version100));
820Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version110));
821Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version120));
825Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version100));
826Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version110));
827Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version120));
828Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version140));
834Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version100));
835Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version110));
836Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version120));
837Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version140));
838Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version150));
839Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version160));
852Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue((TargetDotNetFrameworkVersion)99, vsVersion));
858Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(dotNetVersion, (VisualStudioVersion)99));
872Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version30, vsVersion));
885Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100));
886Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110));
891Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100));
892Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110));
893Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120));
907Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk((TargetDotNetFrameworkVersion)99, vsVersion));
913Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(dotNetVersion, (VisualStudioVersion)99));
947Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version30, vsVersion));
966Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100));
967Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110));
972Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100));
973Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110));
974Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120));
1873Should.Throw<ArgumentException>(() =>
1886Should.Throw<ArgumentException>(() =>
2978Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPlatformExtensionSDKLocations(identifier, version));
2979Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPlatformSDKLocation(identifier, version));
3097Should.Throw<ArgumentException>(() => { ToolLocationHelper.GatherSDKListFromDirectory(paths, targetPlatform); });
3120Should.Throw<ArgumentException>(() => new SDKManifest(""));
Microsoft.Cci.Extensions (1)
Microsoft.CSharp (1)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.Helix.Client (2)
Microsoft.DotNet.Helix.JobSender.Tests (4)
Microsoft.DotNet.Helix.Sdk (1)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.VersionTools.Tests (40)
Microsoft.Extensions.Caching.Abstractions (1)
Microsoft.Extensions.Caching.Memory (1)
Microsoft.Extensions.Caching.SqlServer (4)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Binder (1)
Microsoft.Extensions.Configuration.CommandLine (1)
Microsoft.Extensions.Configuration.FileExtensions (1)
Microsoft.Extensions.Configuration.Ini (1)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (3)
Microsoft.Extensions.Configuration.UserSecrets (1)
Microsoft.Extensions.Configuration.Xml (1)
Microsoft.Extensions.DependencyInjection (1)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (2)
Microsoft.Extensions.FileProviders.Composite (1)
Microsoft.Extensions.FileProviders.Embedded (4)
Microsoft.Extensions.FileProviders.Physical (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Hosting.Abstractions (1)
Microsoft.Extensions.Hosting.Systemd (1)
Microsoft.Extensions.Hosting.WindowsServices (1)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Localization (4)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.AzureAppServices (2)
Microsoft.Extensions.Logging.Configuration (1)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.Debug (1)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Logging.TraceSource (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Options.ConfigurationExtensions (1)
Microsoft.Extensions.Options.DataAnnotations (1)
Microsoft.Extensions.Primitives (2)
Microsoft.Extensions.SecretManager.Tools.Tests (1)
Microsoft.JSInterop (3)
Microsoft.JSInterop.Tests (15)
Infrastructure\DotNetDispatcherTest.cs (14)
42var ex = Assert.Throws<ArgumentException>(() =>
64var ex = Assert.Throws<ArgumentException>(() =>
238var ex = Assert.Throws<ArgumentException>(
257var ex = Assert.Throws<ArgumentException>(
498var ex = Assert.Throws<ArgumentException>(() => DotNetDispatcher.Invoke(jsRuntime, new DotNetInvocationInfo(thisAssemblyName, methodIdentifier, 0, default), "[7]"));
513var ex = Assert.Throws<ArgumentException>(() => DotNetDispatcher.Invoke(jsRuntime, new DotNetInvocationInfo(null, methodIdentifier, 1, default), argsJson));
543var ex = Assert.Throws<ArgumentException>(() =>
Microsoft.Net.Http.Headers (3)
Microsoft.Net.Http.Headers.Tests (24)
Microsoft.VisualBasic.Core (10)
Microsoft.Web.Xdt.Extensions (2)
MSBuild (7)
MSBuildTaskHost (7)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (4)
PresentationCore (49)
PresentationFramework (168)
PresentationUI (4)
ReachFramework (20)
System.Collections.Concurrent (34)
System.Collections.Immutable (21)
System.ComponentModel.Annotations (17)
System.ComponentModel.Composition (48)
System.ComponentModel.TypeConverter (2)
System.Data.Common (44)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (18)
44internal static ArgumentException Argument(string error)
46ArgumentException e = new ArgumentException(error);
51internal static ArgumentException Argument(string error, Exception? inner)
53ArgumentException e = new ArgumentException(error, inner);
58internal static ArgumentException Argument(string error, string? parameter)
60ArgumentException e = new ArgumentException(error, parameter);
203internal static ArgumentException InvalidMultipartName(string property, string value)
205ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartName, property, value));
210internal static ArgumentException InvalidMultipartNameIncorrectUsageOfQuotes(string property, string value)
212ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameQuoteUsage, property, value));
217internal static ArgumentException InvalidMultipartNameToManyParts(string property, string value, int limit)
219ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameToManyParts, property, value, limit));
282internal static ArgumentException ConnectionStringSyntax(int index)
286internal static ArgumentException KeywordNotSupported(string keyword)
290internal static ArgumentException ConvertFailed(Type fromType, Type toType, Exception? innerException)
310internal static ArgumentException CollectionRemoveInvalidObject(Type itemType, ICollection collection)
396internal static ArgumentException ParametersIsNotParent(Type parameterType, ICollection collection)
400internal static ArgumentException ParametersIsParent(Type parameterType, ICollection collection)
System.Diagnostics.Process (2)
System.Diagnostics.TextWriterTraceListener (1)
System.Diagnostics.TraceSource (2)
System.Formats.Asn1 (91)
System.Formats.Cbor (5)
System.Formats.Tar (47)
System.IO.Compression (11)
System.IO.Compression.Brotli (4)
System.IO.Compression.ZipFile (27)
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>
213/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length
255/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length
301/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length
346/// otherwise an <see cref="ArgumentException"/> is thrown.</para>
363/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
389/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
417/// <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.cs (10)
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>
200/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception>
229/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception>
264/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
302/// <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.Watcher (1)
System.IO.Hashing (4)
System.IO.IsolatedStorage (11)
System.IO.MemoryMappedFiles (4)
System.IO.Pipes (2)
System.Linq (10)
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 (5)
System.Memory (6)
System.Net.Http (20)
System.Net.Http.Json (2)
System.Net.HttpListener (5)
System.Net.Mail (23)
System.Net.Ping (6)
System.Net.Primitives (4)
System.Net.Quic (2)
System.Net.Requests (6)
System.Net.Security (5)
System.Net.Sockets (3)
System.Net.WebClient (1)
System.Net.WebHeaderCollection (1)
System.Net.WebSockets (1)
System.Net.WebSockets.Client (1)
System.Numerics.Tensors (457)
System.Private.CoreLib (459)
System.Private.DataContractSerialization (40)
System.Private.Uri (6)
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.Runtime (1)
System.Runtime.InteropServices (1)
System.Runtime.Numerics (3)
System.Security.Cryptography (418)
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));
1051/// <exception cref="ArgumentException">
1104/// <exception cref="ArgumentException">
1175/// <exception cref="ArgumentException">
System.Security.Cryptography.Cose (42)
System.Text.Json (137)
System.Text.RegularExpressions (5)
System.Text.RegularExpressions.Generator (1)
System.Threading.RateLimiting (1)
System.Threading.Tasks.Parallel (2)
System.Transactions.Local (1)
System.Xaml (4)
System.Xaml.Tests (8)
UIAutomationClientSideProviders (3)
xunit.console (1)