382 references to ArgumentOutOfRangeException
dotnet-dev-certs (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Components (7)
Microsoft.AspNetCore.Cryptography.KeyDerivation (7)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (7)
16throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-zero value.");
22throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative value.");
28throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative and non-zero value.");
34throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be less than or equal to '{other}'.");
40throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be less than '{other}'.");
46throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than or equal to '{other}'.");
52throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than '{other}'.");
Microsoft.AspNetCore.DataProtection.Abstractions (7)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (7)
16throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-zero value.");
22throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative value.");
28throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative and non-zero value.");
34throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be less than or equal to '{other}'.");
40throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be less than '{other}'.");
46throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than or equal to '{other}'.");
52throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than '{other}'.");
Microsoft.AspNetCore.Http (3)
Microsoft.AspNetCore.Http.Connections.Client (7)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (7)
16throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-zero value.");
22throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative value.");
28throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative and non-zero value.");
34throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be less than or equal to '{other}'.");
40throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be less than '{other}'.");
46throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than or equal to '{other}'.");
52throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than '{other}'.");
Microsoft.AspNetCore.Http.Extensions (2)
Microsoft.AspNetCore.InternalTesting.Tests (1)
Microsoft.AspNetCore.Owin (4)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.Routing (7)
Microsoft.AspNetCore.Server.HttpSys (12)
HttpSysOptions.cs (5)
50throw new ArgumentOutOfRangeException(nameof(value),
134throw new ArgumentOutOfRangeException(nameof(value), value, "The value must be positive, or -1 for infinite.");
161throw new ArgumentOutOfRangeException(nameof(value), value, "The value must be greater than zero.");
184throw new ArgumentOutOfRangeException(nameof(value), value, "The value must be greater or equal to zero.");
217throw new ArgumentOutOfRangeException(nameof(value), value, message);
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Http2Limits.cs (6)
37throw new ArgumentOutOfRangeException(nameof(value), value, CoreStrings.GreaterThanZeroRequired);
57throw new ArgumentOutOfRangeException(nameof(value), value, CoreStrings.GreaterThanOrEqualToZeroRequired);
77throw new ArgumentOutOfRangeException(nameof(value), value, CoreStrings.FormatArgumentOutOfRange(Http2PeerSettings.MinAllowedMaxFrameSize, Http2PeerSettings.MaxAllowedMaxFrameSize));
97throw new ArgumentOutOfRangeException(nameof(value), value, CoreStrings.GreaterThanZeroRequired);
118throw new ArgumentOutOfRangeException(nameof(value), value,
141throw new ArgumentOutOfRangeException(nameof(value), value,
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Shared.Tests (3)
Microsoft.AspNetCore.TestHost (4)
Microsoft.AspNetCore.WebSockets.Tests (2)
Microsoft.AspNetCore.WebUtilities (6)
Microsoft.Build (2)
Microsoft.Build.Engine.UnitTests (5)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.VersionTools.Tasks (1)
Microsoft.Extensions.Caching.Abstractions (7)
Microsoft.Extensions.Caching.Memory (5)
Microsoft.Extensions.Caching.SqlServer (1)
Microsoft.Extensions.Caching.StackExchangeRedis (1)
Microsoft.JSInterop (1)
Microsoft.Net.Http.Headers (1)
PresentationCore (18)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (10)
81throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
110throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
138throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
168throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
196throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
247throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
252throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsGreatThanRemainingBits);
381throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
420throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
449throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
PresentationFramework (38)
ReachFramework (3)
System.Collections (12)
System\Collections\Generic\SortedList.cs (7)
233throw new ArgumentOutOfRangeException(nameof(value), value, SR.ArgumentOutOfRange_SmallCapacity);
437throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual);
468throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual);
527throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess);
540throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess);
564throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess);
688throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess);
System.Collections.Concurrent (3)
System.Console (2)
System.Diagnostics.TraceSource (1)
System.Formats.Asn1 (2)
System.IO.Pipelines (1)
System.Net.Http (6)
System.Net.Quic (3)
System.Net.Security (1)
System.Net.Sockets (1)
System.Net.WebSockets (5)
System.Net.WebSockets.Client (1)
System.Private.CoreLib (128)
src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (9)
92throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNonZero, paramName, value));
96throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNonNegative, paramName, value));
100throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNonNegativeNonZero, paramName, value));
104throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeLessOrEqual, paramName, value, other));
108throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeLess, paramName, value, other));
112throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeGreaterOrEqual, paramName, value, other));
116throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeGreater, paramName, value, other));
120throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNotEqual, paramName, (object?)value ?? "null", (object?)other ?? "null"));
124throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeEqual, paramName, (object?)value ?? "null", (object?)other ?? "null"));
src\libraries\System.Private.CoreLib\src\System\Globalization\ChineseLunisolarCalendar.cs (3)
258throw new ArgumentOutOfRangeException("year", lunarYear, SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear));
273throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue);
277throw new ArgumentOutOfRangeException(nameof(year), year, SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear));
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (19)
51throw new ArgumentOutOfRangeException(
68throw new ArgumentOutOfRangeException(
141throw new ArgumentOutOfRangeException(
215throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue);
228throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue);
250throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue);
254throw new ArgumentOutOfRangeException(
293throw new ArgumentOutOfRangeException(
301throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue);
305throw new ArgumentOutOfRangeException(
312throw new ArgumentOutOfRangeException(
330throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue);
334throw new ArgumentOutOfRangeException(
351throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue);
355throw new ArgumentOutOfRangeException(
362throw new ArgumentOutOfRangeException(
379throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue);
392throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue);
427throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (4)
218throw new ArgumentOutOfRangeException(nameof(month), month, SR.ArgumentOutOfRange_Month);
224throw new ArgumentOutOfRangeException(nameof(dayNumber), dayNumber, SR.ArgumentOutOfRange_DayNumber);
260throw new ArgumentOutOfRangeException(parameterName, value, SR.Format(SR.ArgumentOutOfRange_Range, minInclusive, maxInclusive));
542throw new ArgumentOutOfRangeException(nameof(state), state, SR.Argument_UnexpectedStateForKnownCallback);
System.Private.Uri (2)
System.Runtime.InteropServices (2)
System.Security.Cryptography (6)
System.Threading (2)
System.Threading.RateLimiting (8)
System.Windows.Input.Manipulations (1)
UIAutomationClientSideProviders (18)