1357 references to ArgumentOutOfRangeException
aspire (1)
ConsoleCancellationManager.cs (1)
188throw new ArgumentOutOfRangeException(nameof(gracefulBudget), "Graceful budget cannot be negative.");
Aspire.Hosting (3)
ContainerResourceBuilderExtensions.cs (1)
428throw new ArgumentOutOfRangeException(nameof(tag), "Tag conflicts with digest provided on the 'image' parameter");
ResourceBuilderExtensions.cs (1)
173throw new ArgumentOutOfRangeException(nameof(parentProcessId), "The parent process ID must be greater than zero.");
Utils\ContainerReferenceParser.cs (1)
16throw new ArgumentOutOfRangeException(nameof(input), "repository name must have at least one component");
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (1)
147throw new ArgumentOutOfRangeException(paramName, message);
dotnet (1)
Commands\Test\MTP\TestApplicationHandler.cs (1)
650_ => throw new ArgumentOutOfRangeException(nameof(testState), $"Invalid test state value {testState}")
dotnet-svcutil-lib (143)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (1)
120throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxItemsInObjectGraph", string.Format(SRSerialization.ValueMustBeNonNegative)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (2)
52throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("i", string.Format(SRSerialization.XmlElementAttributes))); 152throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("i", string.Format(SRSerialization.XmlElementAttributes)));
FrameworkFork\System.Runtime.Serialization\System\Text\Base64Encoding.cs (30)
40throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.ValueMustBeNonNegative))); 68throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.ValueMustBeNonNegative))); 70throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 72throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 74throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - index))); 128throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 130throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 133throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.ValueMustBeNonNegative))); 135throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 140throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 142throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 211throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 213throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 216throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.ValueMustBeNonNegative))); 218throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 223throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 225throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 285throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.ValueMustBeInRange, 0, int.MaxValue / 4 * 3 - 2))); 304throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 306throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 308throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.ValueMustBeNonNegative))); 310throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 316throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 318throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 398throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 400throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 402throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.ValueMustBeNonNegative))); 404throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 410throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 412throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length)));
FrameworkFork\System.Runtime.Serialization\System\Text\BinHexEncoding.cs (14)
38throw new ArgumentOutOfRangeException("charCount", SRSerialization.ValueMustBeNonNegative); 55throw new ArgumentOutOfRangeException("charIndex", SRSerialization.ValueMustBeNonNegative); 57throw new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length)); 59throw new ArgumentOutOfRangeException("charCount", SRSerialization.ValueMustBeNonNegative); 61throw new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)); 65throw new ArgumentOutOfRangeException("byteIndex", SRSerialization.ValueMustBeNonNegative); 67throw new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length)); 111throw new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.ValueMustBeInRange, 0, int.MaxValue / 2)); 126throw new ArgumentOutOfRangeException("byteIndex", SRSerialization.ValueMustBeNonNegative); 128throw new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length)); 130throw new ArgumentOutOfRangeException("byteCount", SRSerialization.ValueMustBeNonNegative); 132throw new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)); 137throw new ArgumentOutOfRangeException("charIndex", SRSerialization.ValueMustBeNonNegative); 139throw new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length));
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (12)
89throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 91throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, guid.Length))); 129throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 131throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 133throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 135throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 273throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 275throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 278throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("chars", string.Format(SRSerialization.XmlArrayTooSmallOutput, count))); 360throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 362throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 365throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("buffer", string.Format(SRSerialization.XmlArrayTooSmallOutput, guidLength)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (15)
524throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.XmlElementAttributes))); 526throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.ValueMustBeNonNegative))); 528throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.OffsetExceedsBufferSize, _attributeCount))); 1148throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1150throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 1152throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1154throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1178throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1180throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 1182throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1184throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1338throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1340throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 1342throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1344throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (9)
1004throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1007throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1009throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1061throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1064throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1066throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1431throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1434throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1436throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (8)
40throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 42throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 44throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 46throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1210throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1212throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 1214throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1216throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (4)
1272throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1274throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 1276throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1278throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (4)
896throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 898throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 900throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 902throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryString.cs (1)
32throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("key", string.Format(SRSerialization.ValueMustBeInRange, MinKey, MaxKey)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryWriter.cs (4)
408throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 410throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 412throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 414throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (4)
567throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 569throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 571throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 573throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\KerberosSecurityTokenProvider.cs (1)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("tokenImpersonationLevel",
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\BinaryKeyIdentifierClause.cs (2)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("identificationData", SRServiceModel.LengthMustBeGreaterThanZero)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("tokenImpersonationLevel",
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (2)
156new ArgumentOutOfRangeException("timeout", SRServiceModel.SFxTimeoutOutOfRange0)); 331new ArgumentOutOfRangeException("timeout", SRServiceModel.SFxTimeoutOutOfRange0));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionOrientedTransportChannelFactory.cs (1)
41new ArgumentOutOfRangeException("bindingElement.MaxReceivedMessageSize",
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
61new ArgumentOutOfRangeException("bindingElement.MaxReceivedMessageSize",
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ContractDescription.cs (1)
82new ArgumentOutOfRangeException("value", SRServiceModel.SFxContractDescriptionNameCannotBeEmpty));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (1)
141throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", string.Format(SRServiceModel.SFxMaximumResolvedReferencesOutOfRange, value)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationDescription.cs (1)
46new ArgumentOutOfRangeException("name", SRServiceModel.SFxOperationDescriptionNameCannotBeEmpty));
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultContractAttribute.cs (1)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value",
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageContractAttribute.cs (1)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value",
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageContractMemberAttribute.cs (1)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value",
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageParameterAttribute.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value",
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContractAttribute.cs (1)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value",
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityToken.cs (1)
208throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (2)
466throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SRServiceModel.TimeSpanMustbeGreaterThanTimeSpanZero)); 577throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SRServiceModel.TimeSpanMustbeGreaterThanTimeSpanZero));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityStandardsManager.cs (1)
63throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("messageSecurityVersion", SRServiceModel.MessageSecurityVersionOutOfRange));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityTimestamp.cs (1)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ArgumentOutOfRangeException("recordedExpiryTime", SRServiceModel.CreationTimeUtcIsAfterExpiryTime));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (1)
186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSKeyInfoSerializer.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("securityVersion", SRServiceModel.MessageSecurityVersionOutOfRange));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maximumKeyDerivationOffset", SRServiceModel.ValueMustBeNonNegative)); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maximumKeyDerivationLabelLength", SRServiceModel.ValueMustBeNonNegative)); 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maximumKeyDerivationNonceLength", SRServiceModel.ValueMustBeGreaterThanZero)); 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("securityVersion", SRServiceModel.MessageSecurityVersionOutOfRange));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (1)
688throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("keySize", SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\XmlHelper.cs (3)
308throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("idPrefix", SRServiceModel.ValueMustBeGreaterThanZero)); 313throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("idPrefix", string.Format(SRServiceModel.InValidateIdPrefix, idPrefix[0]))); 321throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("idPrefix", string.Format(SRServiceModel.InValidateId, idPrefix[i])));
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceContractAttribute.cs (2)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value",
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpBindingBase.cs (1)
83new ArgumentOutOfRangeException("value.MaxReceivedMessageSize",
GenerateDocumentationAndConfigFiles (8)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
236return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (6)
82throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 84throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 147throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 149throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 153throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
95throw new ArgumentOutOfRangeException(paramName: nameof(priority), message: $"Priority must be between 0 and {_itemsByPriority.Length - 1}");
ILCompiler.Compiler (4)
Compiler\Logging\MessageContainer.cs (4)
65throw new ArgumentOutOfRangeException(nameof(code), $"The provided code '{code}' does not fall into the error category, which is in the range of 1000 to 2000 (inclusive)."); 81throw new ArgumentOutOfRangeException(nameof(id), $"The provided code '{(int)id}' does not fall into the error category, which is in the range of 1000 to 2000 (inclusive)."); 101throw new ArgumentOutOfRangeException(nameof(code), $"The provided code '{code}' does not fall into the warning category, which is in the range of 2001 to 6000 (inclusive)."); 118throw new ArgumentOutOfRangeException(nameof(id), $"The provided code '{(int)id}' does not fall into the warning category, which is in the range of 2001 to 6000 (inclusive).");
illink (6)
ILLink.RoslynAnalyzer (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
151throw new ArgumentOutOfRangeException("value", "value must be non-negative");
Microsoft.Analyzers.Local.Tests (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.AspNetCore.Antiforgery (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
102throw new ArgumentOutOfRangeException(nameof(count), "Count cannot be negative.");
Microsoft.AspNetCore.AsyncState (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.AspNetCore.Components.Endpoints (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
102throw new ArgumentOutOfRangeException(nameof(count), "Count cannot be negative.");
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSRuntime.cs (1)
169throw new ArgumentOutOfRangeException(nameof(data), "Exceeded the maximum byte array transfer limit for a call.");
Microsoft.AspNetCore.Components.Web (1)
Forms\InputFile\BrowserFile.cs (1)
25throw new ArgumentOutOfRangeException(nameof(Size), $"Size must be a non-negative value. Value provided: {value}.");
Microsoft.AspNetCore.Cors (2)
Infrastructure\CorsPolicy.cs (1)
128throw new ArgumentOutOfRangeException(nameof(value), Resources.PreflightMaxAgeOutOfRange);
Infrastructure\CorsResult.cs (1)
70throw new ArgumentOutOfRangeException(nameof(value), Resources.PreflightMaxAgeOutOfRange);
Microsoft.AspNetCore.Cryptography.Internal (1)
Cng\BCRYPT_KEY_LENGTHS_STRUCT.cs (1)
25throw new ArgumentOutOfRangeException(nameof(keyLengthInBits), message);
Microsoft.AspNetCore.DataProtection (3)
Error.cs (1)
71return new ArgumentOutOfRangeException(paramName, Resources.Common_ValueMustBeNonNegative);
KeyManagement\KeyManagementOptions.cs (1)
134throw new ArgumentOutOfRangeException(nameof(value), Resources.KeyManagementOptions_MinNewKeyLifetimeViolated);
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
102throw new ArgumentOutOfRangeException(nameof(count), "Count cannot be negative.");
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
102throw new ArgumentOutOfRangeException(nameof(count), "Count cannot be negative.");
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.AspNetCore.HeaderParsing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.AspNetCore.Http.Abstractions (2)
HostString.cs (1)
52throw new ArgumentOutOfRangeException(nameof(port), Resources.Exception_PortMustBeGreaterThanZero);
HttpProtocol.cs (1)
121_ => throw new ArgumentOutOfRangeException(nameof(version), "Version doesn't map to a known HTTP protocol.")
Microsoft.AspNetCore.Http.Features (1)
WebSocketAcceptContext.cs (1)
92throw new ArgumentOutOfRangeException(nameof(ServerMaxWindowBits),
Microsoft.AspNetCore.HttpLogging (4)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
102throw new ArgumentOutOfRangeException(nameof(count), "Count cannot be negative.");
W3CLoggerOptions.cs (3)
33throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(FileSizeLimit)} must be positive."); 51throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(RetainedFileCountLimit)} must be between 1 and 10,000 (inclusive)"); 99throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(FlushInterval)} must be positive.");
Microsoft.AspNetCore.HttpOverrides (2)
IPNetwork.cs (2)
33throw new ArgumentOutOfRangeException(nameof(prefixLength), "The prefix length was out of range."); 134throw new ArgumentOutOfRangeException(nameof(networkSpan), "The prefix length was out of range.");
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultHtmlGenerator.cs (2)
608throw new ArgumentOutOfRangeException(nameof(rows), Resources.HtmlHelper_TextAreaParameterOutOfRange); 613throw new ArgumentOutOfRangeException(
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ThrowHelper.cs (2)
120=> throw new ArgumentOutOfRangeException(paramName, message); 182=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.AspNetCore.Rewrite (2)
BackReferenceCollection.cs (1)
38throw new ArgumentOutOfRangeException(null, $"Cannot access back reference at index {index}. Only {_backReferences.Count} back references were captured.");
IISUrlRewrite\ConditionCollection.cs (1)
36throw new ArgumentOutOfRangeException(null, $"Cannot access condition at index {index}. Only {_conditions.Count} conditions were captured.");
Microsoft.AspNetCore.Server.HttpSys (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.IIS (4)
Core\IISHttpContext.FeatureCollection.cs (2)
457throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired); 527throw new ArgumentOutOfRangeException(nameof(errorCode), "'errorCode' cannot be negative");
IISServerOptions.cs (1)
74throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired);
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.Kestrel.Core (22)
DirectTlsEndpointOptions.cs (1)
137throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveTimeSpanRequired);
Http2Limits.cs (2)
167throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.FormatArgumentTimeSpanGreaterOrEqual(Heartbeat.Interval)); 192throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.FormatArgumentTimeSpanGreaterOrEqual(Heartbeat.Interval));
HttpsConnectionAdapterOptions.cs (1)
124throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveTimeSpanRequired);
Internal\Http\Http1OutputProducer.cs (2)
259throw new ArgumentOutOfRangeException(nameof(bytes), "Can't advance past buffer size."); 269throw new ArgumentOutOfRangeException(nameof(bytes), "Can't advance past buffer size.");
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
215throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired);
KestrelServerLimits.cs (10)
63throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired); 83throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveNumberOrNullRequired); 104throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveNumberRequired); 123throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveNumberRequired); 142throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveNumberRequired); 164throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired); 183throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveTimeSpanRequired); 202throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveTimeSpanRequired); 227throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveNumberOrNullRequired); 253throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired);
MinDataRate.cs (2)
23throw new ArgumentOutOfRangeException(nameof(bytesPerSecond), CoreStrings.PositiveNumberOrNullMinDataRateRequired); 28throw new ArgumentOutOfRangeException(nameof(gracePeriod), CoreStrings.FormatMinimumGracePeriodRequired(Heartbeat.Interval.TotalSeconds));
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
102throw new ArgumentOutOfRangeException(nameof(count), "Count cannot be negative.");
TlsHandshakeCallbackOptions.cs (1)
37throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveTimeSpanRequired);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Session (4)
DistributedSession.cs (4)
148throw new ArgumentOutOfRangeException(nameof(key), 364throw new ArgumentOutOfRangeException(nameof(num), Resources.Exception_InvalidToSerializeIn2Bytes); 379throw new ArgumentOutOfRangeException(nameof(num), Resources.Exception_InvalidToSerializeIn3Bytes); 395throw new ArgumentOutOfRangeException(nameof(num), Resources.Exception_NumberShouldNotBeNegative);
Microsoft.AspNetCore.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.AspNetCore.WebUtilities (1)
FileBufferingWriteStream.cs (1)
49throw new ArgumentOutOfRangeException(nameof(bufferLimit), $"{nameof(bufferLimit)} must be larger than {nameof(memoryThreshold)}.");
Microsoft.Build (9)
Graph\ProjectGraph.cs (1)
449throw new ArgumentOutOfRangeException(nameof(options.DegreeOfParallelism), "DegreeOfParallelism must be greater than zero.");
Logging\BinaryLogger\Postprocessing\StreamExtensions.cs (1)
17throw new ArgumentOutOfRangeException(nameof(bytesCount), ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Binlog_StreamUtils_UnsupportedSkipOffset",
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ThrowHelper.cs (1)
236return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedArray.cs (6)
82throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 84throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 147throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 149throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 153throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
Microsoft.CodeAnalysis (18)
Compilation\Compilation.cs (1)
996throw new ArgumentOutOfRangeException(nameof(specialType), $"Unexpected SpecialType: '{(int)specialType}'.");
Compilation\SubsystemVersion.cs (1)
171throw new ArgumentOutOfRangeException(CodeAnalysisResources.OutputKindNotSupported, "outputKind");
Emit\SemanticEdit.cs (1)
186throw new ArgumentOutOfRangeException(nameof(MethodInstrumentation.Kinds), string.Format(CodeAnalysisResources.InvalidInstrumentationKind, instrumentationKind));
MetadataReference\AssemblyIdentity.cs (1)
108throw new ArgumentOutOfRangeException(nameof(contentType), CodeAnalysisResources.InvalidContentType);
MetadataReference\ModuleMetadata.cs (2)
107throw new ArgumentOutOfRangeException(CodeAnalysisResources.SizeHasToBePositive, nameof(size)); 139throw new ArgumentOutOfRangeException(CodeAnalysisResources.SizeHasToBePositive, nameof(size));
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
236return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (6)
82throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 84throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 147throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 149throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 153throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
Text\TextLine.cs (2)
62throw new ArgumentOutOfRangeException(nameof(span), CodeAnalysisResources.SpanDoesNotIncludeStartOfLine); 84throw new ArgumentOutOfRangeException(nameof(span), CodeAnalysisResources.SpanDoesNotIncludeEndOfLine);
Text\TextLineCollection.cs (1)
67throw new ArgumentOutOfRangeException(nameof(position.Line), string.Format(CodeAnalysisResources.LineCannotBeGreaterThanEnd, position.Line, this.Count));
Text\TextSpan.cs (2)
189throw new ArgumentOutOfRangeException(nameof(start), CodeAnalysisResources.StartMustNotBeNegative); 194throw new ArgumentOutOfRangeException(nameof(end), string.Format(CodeAnalysisResources.EndMustNotBeLessThanStart, start, end));
Microsoft.CodeAnalysis.Analyzers (8)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
236return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (6)
82throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 84throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 147throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 149throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 153throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
95throw new ArgumentOutOfRangeException(paramName: nameof(priority), message: $"Priority must be between 0 and {_itemsByPriority.Length - 1}");
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
236return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (6)
82throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 84throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 147throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 149throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 153throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertyMapper.cs (2)
57throw new ArgumentOutOfRangeException(nameof(propertyIndex), "propertyIndex must be non-negative"); 86throw new ArgumentOutOfRangeException(nameof(propertyIndex), "propertyIndex must be non-negative");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
95throw new ArgumentOutOfRangeException(paramName: nameof(priority), message: $"Priority must be between 0 and {_itemsByPriority.Length - 1}");
Microsoft.CodeAnalysis.CodeStyle (8)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
236return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (6)
82throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 84throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 147throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 149throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 153throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
95throw new ArgumentOutOfRangeException(paramName: nameof(priority), message: $"Priority must be between 0 and {_itemsByPriority.Length - 1}");
Microsoft.CodeAnalysis.CSharp (3)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
111throw new ArgumentOutOfRangeException(nameof(node), "node not part of tree"); 947throw new ArgumentOutOfRangeException(nameof(compilationUnit), "node not part of tree");
Compilation\CSharpCompilation.cs (1)
1748throw new ArgumentOutOfRangeException(nameof(specialType), $"Unexpected SpecialType: '{(int)specialType}'.");
Microsoft.CodeAnalysis.Extensions.Package (7)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
236return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (6)
82throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 84throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 147throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 149throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 153throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
Microsoft.CodeAnalysis.NetAnalyzers (2)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertyMapper.cs (2)
56throw new ArgumentOutOfRangeException(nameof(propertyIndex), "propertyIndex must be non-negative"); 85throw new ArgumentOutOfRangeException(nameof(propertyIndex), "propertyIndex must be non-negative");
Microsoft.CodeAnalysis.ResxSourceGenerator (8)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
236return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (6)
82throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 84throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 147throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 149throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 153throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
95throw new ArgumentOutOfRangeException(paramName: nameof(priority), message: $"Priority must be between 0 and {_itemsByPriority.Length - 1}");
Microsoft.CodeAnalysis.Workspaces (9)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
236return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (6)
82throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 84throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 147throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 149throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 153throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
95throw new ArgumentOutOfRangeException(paramName: nameof(priority), message: $"Priority must be between 0 and {_itemsByPriority.Length - 1}");
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
376throw new ArgumentOutOfRangeException("The specified files are empty.", nameof(filePaths));
Microsoft.Data.Analysis (4)
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
224throw new ArgumentOutOfRangeException(Strings.IndexIsGreaterThanColumnLength, nameof(rowIndex));
DataFrameColumns\StringDataFrameColumn.cs (1)
107throw new ArgumentOutOfRangeException(Strings.IndexIsGreaterThanColumnLength, nameof(rowIndex));
DataFrameColumns\VBufferDataFrameColumn.cs (1)
86throw new ArgumentOutOfRangeException(Strings.IndexIsGreaterThanColumnLength, nameof(rowIndex));
PrimitiveColumnContainer.cs (1)
354throw new ArgumentOutOfRangeException(Strings.IndexIsGreaterThanColumnLength, nameof(rowIndex));
Microsoft.Deployment.DotNet.Releases (4)
ReleaseVersion.cs (4)
134throw new ArgumentOutOfRangeException(nameof(major), ReleasesResources.VersionPartLessThanZero); 139throw new ArgumentOutOfRangeException(nameof(minor), ReleasesResources.VersionPartLessThanZero); 144throw new ArgumentOutOfRangeException(nameof(patch), ReleasesResources.VersionPartLessThanZero); 838throw new ArgumentOutOfRangeException(nameof(input), ReleasesResources.VersionPartLessThanZero);
Microsoft.Diagnostics.DataContractReader.Contracts (6)
Contracts\GCInfo\X86\GCArgTable.cs (2)
79_ => throw new ArgumentOutOfRangeException(nameof(val), $"Not expected register value: {val}"), 89_ => throw new ArgumentOutOfRangeException(nameof(val), $"Not expected register value: {val}"),
Contracts\StackWalk\Context\AMD64\AMD64Unwinder.cs (3)
1116throw new ArgumentOutOfRangeException(nameof(index), "Index is out of range for unwind codes."); 1271=> context.TryReadRegister(register, out TargetNUInt value) ? value.Value : throw new ArgumentOutOfRangeException(nameof(register), "Invalid register number for AMD64 context."); 1276throw new ArgumentOutOfRangeException(nameof(register), "Invalid register number for AMD64 context.");
src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\NativeReader.cs (1)
41throw new ArgumentOutOfRangeException(nameof(start), "Start index is out of bounds");
Microsoft.DotNet.ApiCompatibility (2)
Mapping\ElementMapper.cs (2)
40throw new ArgumentOutOfRangeException(nameof(rightSetSize), string.Format(Resources.ShouldBeGreaterThanZero, nameof(rightSetSize))); 57throw new ArgumentOutOfRangeException(nameof(setIndex), string.Format(Resources.IndexShouldBeWithinSetSizeRange, nameof(Right), Right.Length - 1));
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\SharedSecretProvider.cs (1)
101if (length < 0) throw new ArgumentOutOfRangeException(nameof(length), "Length must be non-negative");
Microsoft.Extensions.AI (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AI.Abstractions (2)
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\SystemIndex\Index.cs (1)
145throw new ArgumentOutOfRangeException("value", "value must be non-negative");
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AI.Evaluation (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AI.Evaluation.Console (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AI.Evaluation.NLP (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AI.Evaluation.Quality (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AI.Evaluation.Reporting (1)
parent\parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AI.Evaluation.Safety (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AI.Integration.Tests (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AI.OpenAI (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AmbientMetadata.Application (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AmbientMetadata.Build (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.AsyncState (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Caching.Hybrid (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Compliance.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Compliance.Redaction (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Compliance.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.DataIngestion (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.DataIngestion.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.DataIngestion.Markdig (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.DataIngestion.MarkItDown (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Diagnostics.Probes (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Diagnostics.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Hosting.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Http.Resilience (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Logging.AzureAppServices (7)
AzureFileLoggerOptions.cs (2)
35throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(FileSizeLimit)} must be positive."); 55throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(RetainedFileCountLimit)} must be positive.");
BatchingLoggerOptions.cs (3)
27throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(FlushPeriod)} must be positive."); 49throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(BackgroundQueueSize)} must be non-negative."); 68throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(BatchSize)} must be positive.");
BatchingLoggerProvider.cs (2)
43throw new ArgumentOutOfRangeException(nameof(loggerOptions.BatchSize), $"{nameof(loggerOptions.BatchSize)} must be a positive number."); 49throw new ArgumentOutOfRangeException(nameof(loggerOptions.FlushPeriod), $"{nameof(loggerOptions.FlushPeriod)} must be longer than zero.");
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Options.Contextual (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Resilience (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.ServiceDiscovery (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.ServiceDiscovery.Dns (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Telemetry (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.Telemetry.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.TimeProvider.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Extensions.VectorData.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGenerator.cs (1)
465throw new ArgumentOutOfRangeException(nameof(options), "No-wrapper options should have been filtered out before calling this method.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
151throw new ArgumentOutOfRangeException("value", "value must be non-negative");
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
151throw new ArgumentOutOfRangeException("value", "value must be non-negative");
Microsoft.JSInterop (1)
Implementation\JSStreamReference.cs (1)
38throw new ArgumentOutOfRangeException(nameof(maxAllowedSize), $"The incoming data stream of length {Length} exceeds the maximum allowed length {maxAllowedSize}.");
Microsoft.Maui.Graphics (2)
PlatformImage.cs (2)
59 throw new ArgumentOutOfRangeException(nameof(quality), "quality must be in the range of 0..1"); 75 throw new ArgumentOutOfRangeException(nameof(quality), "quality must be in the range of 0..1");
Microsoft.Maui.Graphics.Skia (1)
SkiaImage.cs (1)
123 throw new ArgumentOutOfRangeException(nameof(quality), "quality must be in the range of 0..1");
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
src\Graphics\src\Graphics\Platforms\Windows\PlatformImage.cs (2)
108 throw new ArgumentOutOfRangeException(nameof(quality), "quality must be in the range of 0..1"); 125 throw new ArgumentOutOfRangeException(nameof(quality), "quality must be in the range of 0..1");
Microsoft.ML.AutoML (1)
ColumnInference\ColumnTypeInference.cs (1)
387throw new ArgumentOutOfRangeException(nameof(args.LabelColumnIndex), $"Label column index ({args.LabelColumnIndex}) is >= than # of inferred columns ({cols.Count()}).");
Microsoft.ML.Core (23)
Utilities\ArrayUtils.cs (1)
79throw new ArgumentOutOfRangeException(nameof(max), "min must not exceed max");
Utilities\Contracts.cs (22)
286=> Process(new ArgumentOutOfRangeException(name, msg)); 288=> Process(new ArgumentOutOfRangeException(name, msg), ctx); 290=> Process(new ArgumentOutOfRangeException(name, GetMsg(msg, args))); 292=> Process(new ArgumentOutOfRangeException(name, GetMsg(msg, args)), ctx); 302=> Process(new ArgumentOutOfRangeException(paramName, msg)); 304=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 306=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args))); 308=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args)), ctx); 340=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName))); 342=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName)), ctx); 344=> Process(new ArgumentOutOfRangeException(paramName, msg)); 346=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 348=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args))); 350=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args)), ctx); 356=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName))); 358=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName)), ctx); 360=> Process(new ArgumentOutOfRangeException(paramName, msg)); 362=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 450=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName))); 452=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName)), ctx); 454=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName, expectedType, actualType))); 456=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName, expectedType, actualType)), ctx);
Microsoft.ML.CpuMath (22)
src\Microsoft.ML.Core\Utilities\Contracts.cs (22)
286=> Process(new ArgumentOutOfRangeException(name, msg)); 288=> Process(new ArgumentOutOfRangeException(name, msg), ctx); 290=> Process(new ArgumentOutOfRangeException(name, GetMsg(msg, args))); 292=> Process(new ArgumentOutOfRangeException(name, GetMsg(msg, args)), ctx); 302=> Process(new ArgumentOutOfRangeException(paramName, msg)); 304=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 306=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args))); 308=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args)), ctx); 340=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName))); 342=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName)), ctx); 344=> Process(new ArgumentOutOfRangeException(paramName, msg)); 346=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 348=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args))); 350=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args)), ctx); 356=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName))); 358=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName)), ctx); 360=> Process(new ArgumentOutOfRangeException(paramName, msg)); 362=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 450=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName))); 452=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName)), ctx); 454=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName, expectedType, actualType))); 456=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName, expectedType, actualType)), ctx);
Microsoft.ML.Data (2)
Utilities\StreamUtils.cs (2)
201throw new ArgumentOutOfRangeException(nameof(offset), "Offset must be non-negative."); 206throw new ArgumentOutOfRangeException(nameof(count), "Count must be non-negative and count must not exceed buffer.Length - offset.");
Microsoft.ML.DataView (4)
Contracts.cs (2)
38=> new ArgumentOutOfRangeException(paramName, msg); 40=> new ArgumentOutOfRangeException(paramName, GetMsg(msg, args));
DataViewSchema.cs (1)
40throw new ArgumentOutOfRangeException(nameof(name), $"Column '{name}' not found");
src\Microsoft.ML.Core\Utilities\ArrayUtils.cs (1)
79throw new ArgumentOutOfRangeException(nameof(max), "min must not exceed max");
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
526throw new ArgumentOutOfRangeException(_parent.Inputs[i], "Only 1 unknown dimension is allowed"); 1066throw new ArgumentOutOfRangeException(input, "Only 1 unknown dimension is allowed");
Microsoft.ML.Tokenizers (27)
Model\BPETokenizer.cs (4)
494throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The maximum number of tokens must be greater than zero."); 561throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The maximum number of tokens must be greater than zero."); 641throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 694throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The max token count must be greater than 0.");
Model\CodeGenTokenizer.cs (3)
582throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 800throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 938throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero.");
Model\EnglishRobertaTokenizer.cs (4)
414throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 499throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 546throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The max token count must be greater than 0."); 1210throw new ArgumentOutOfRangeException(nameof(idx), $"Index should be non-negative, got {idx}.");
Model\SentencePieceBpeModel.cs (5)
286throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 315throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 340throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than 0."); 606throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 856throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The max token count must be greater than 0.");
Model\SentencePieceUnigramModel.cs (2)
320throw new ArgumentOutOfRangeException("unkId", "unkId must be a valid index in the vocabulary."); 337throw new ArgumentOutOfRangeException("unkId", "unkId must be a valid index in the vocabulary.");
Model\TiktokenTokenizer.cs (3)
367throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The maximum number of tokens must be greater than zero."); 535throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 661throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The max token count must be greater than 0.");
Model\WordPieceTokenizer.cs (4)
59throw new ArgumentOutOfRangeException(nameof(options.MaxInputCharsPerWord), "The maximum number of characters per word must be greater than zero."); 394throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The maximum number of tokens must be greater than zero."); 546throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The maximum number of tokens must be greater than zero."); 606throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The max token count must be greater than 0.");
Utils\LruCache.cs (1)
33throw new ArgumentOutOfRangeException(nameof(cacheSize), "Cache size must be a positive number.");
Utils\Vec.cs (1)
23throw new ArgumentOutOfRangeException(nameof(index), $"{index} is out of range");
Microsoft.NET.Sdk.Razor.Tasks (1)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerRequest.cs (1)
37throw new ArgumentOutOfRangeException(
Microsoft.Private.Windows.Core (2)
_generated\305\System.Index.g.cs (1)
152throw new global::System.ArgumentOutOfRangeException("value", "Non-negative number required.");
System\Collections\Generic\ArrayBuilder.cs (1)
52throw new ArgumentOutOfRangeException(nameof(item), "Collection is at max capacity.");
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
Client\DiscoveryCriteria.cs (2)
105throw new ArgumentOutOfRangeException( 112throw new ArgumentOutOfRangeException(nameof(discoveredTestEventTimeout), Resources.Resources.NotificationTimeoutIsZero);
Client\TestRunCriteria.cs (2)
788throw new ArgumentOutOfRangeException( 795throw new ArgumentOutOfRangeException(
Mono.Cecil (1)
Mono.Cecil.PE\ByteBuffer.cs (1)
278 throw new ArgumentOutOfRangeException ("value", "valid range is -2^28 to 2^28 -1");
Mono.Cecil.Pdb (2)
Microsoft.Cci.Pdb\IntHashTable.cs (2)
195throw new ArgumentOutOfRangeException("capacity", "ArgumentOutOfRange_NeedNonNegNum"); 197throw new ArgumentOutOfRangeException("loadFactorPerc", String.Format("ArgumentOutOfRange_IntHashTableLoadFactor", 10, 100));
MSBuild (1)
XMake.cs (1)
3426_ => throw new ArgumentOutOfRangeException(nameof(rarShutdownReason), $"Unexpected value: {rarShutdownReason}"),
NuGet.Build.Tasks (1)
TaskLoggingQueue.cs (1)
160throw new ArgumentOutOfRangeException(paramName: nameof(ConsoleOutLogItem.MessageType), $"Invalid message type '{_consoleOutLogMessageType}'");
NuGet.Commands (1)
RestoreCommand\RestoreCommand.cs (1)
175throw new ArgumentOutOfRangeException(
NuGet.Common (1)
PathUtil\PathUtility.cs (1)
363throw new ArgumentOutOfRangeException(nameof(maxWidth), message);
NuGet.Packaging (6)
Signing\Archive\SignedPackageArchiveIOUtility.cs (6)
48throw new ArgumentOutOfRangeException(nameof(position), Strings.SignedPackageArchiveIOExtraRead); 53throw new ArgumentOutOfRangeException(nameof(position), Strings.SignedPackageArchiveIOInvalidRead); 88throw new ArgumentOutOfRangeException(nameof(position), Strings.SignedPackageArchiveIOExtraRead); 93throw new ArgumentOutOfRangeException(nameof(position), Strings.SignedPackageArchiveIOInvalidRead); 159throw new ArgumentOutOfRangeException(nameof(position), Strings.SignedPackageArchiveIOExtraRead); 164throw new ArgumentOutOfRangeException(nameof(position), Strings.SignedPackageArchiveIOInvalidRead);
PresentationBuildTasks (2)
src\wpf\src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\VersionPair.cs (2)
45throw new ArgumentOutOfRangeException(nameof(major), 51throw new ArgumentOutOfRangeException(nameof(minor),
PresentationCore (25)
MS\Internal\FontFace\FontDriver.cs (1)
158throw new ArgumentOutOfRangeException(nameof(faceIndex), SR.FaceIndexValidOnlyForTTC);
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
861throw new ArgumentOutOfRangeException(nameof(value), SR.InvalidDrawingAttributesHeight); 868throw new ArgumentOutOfRangeException(nameof(value), SR.InvalidDrawingAttributesWidth);
MS\Internal\IO\Packaging\NetStream.cs (1)
250throw new ArgumentOutOfRangeException(nameof(origin), SR.SeekOriginInvalid);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (1)
56throw new ArgumentOutOfRangeException(nameof(bufferLengthInBits), SR.InvalidBufferLength);
System\Windows\Documents\DocumentPaginator.cs (1)
77throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.PaginatorNegativePageNumber);
System\Windows\Ink\DrawingAttributes.cs (2)
161throw new ArgumentOutOfRangeException("Height", SR.InvalidDrawingAttributesHeight); 188throw new ArgumentOutOfRangeException("Width", SR.InvalidDrawingAttributesWidth);
System\Windows\Ink\Stroke2.cs (1)
195throw new ArgumentOutOfRangeException(nameof(diameter), SR.InvalidDiameter);
System\Windows\Ink\StrokeCollection2.cs (1)
66throw new ArgumentOutOfRangeException(nameof(diameter), SR.InvalidDiameter);
System\Windows\Input\Stylus\Common\StylusPoint.cs (7)
72throw new ArgumentOutOfRangeException(nameof(x), SR.InvalidStylusPointXYNaN); 76throw new ArgumentOutOfRangeException(nameof(y), SR.InvalidStylusPointXYNaN); 84throw new ArgumentOutOfRangeException(nameof(pressureFactor), SR.InvalidPressureValue); 166throw new ArgumentOutOfRangeException("X", SR.InvalidStylusPointXYNaN); 186throw new ArgumentOutOfRangeException("Y", SR.InvalidStylusPointXYNaN); 221throw new ArgumentOutOfRangeException("PressureFactor", SR.InvalidPressureValue); 381throw new ArgumentOutOfRangeException(nameof(value), SR.InvalidMinMaxForButton);
System\Windows\Media\Animation\KeyTime.cs (2)
30throw new ArgumentOutOfRangeException(nameof(percent), SR.Format(SR.Animation_KeyTime_InvalidPercentValue, percent)); 50throw new ArgumentOutOfRangeException(nameof(timeSpan), SR.Format(SR.Animation_KeyTime_LessThanZero, timeSpan));
System\Windows\Media\Animation\RepeatBehavior.cs (2)
39throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.Timing_RepeatBehaviorInvalidIterationCount, count)); 54throw new ArgumentOutOfRangeException(nameof(duration), SR.Format(SR.Timing_RepeatBehaviorInvalidRepeatDuration, duration));
System\Windows\Media\FormattedText.cs (2)
1299throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.PropertyMustBeGreaterThanZero, "MaxTextHeight")); 1302throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.PropertyValueCannotBeNaN, "MaxTextHeight"));
System\Windows\Media\GlyphTypeface.cs (1)
1061throw new ArgumentOutOfRangeException(nameof(glyphIndex), SR.Format(SR.GlyphIndexOutOfRange, glyphIndex));
System\Windows\Media\VisualCollection.cs (1)
246throw new ArgumentOutOfRangeException(nameof(value), SR.VisualCollection_NotEnoughCapacity);
PresentationFramework (28)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
317throw new ArgumentOutOfRangeException(nameof(index),
MS\Internal\Documents\ContentElementCollection.cs (2)
73throw new ArgumentOutOfRangeException(nameof(index), SR.TableCollectionOutOfRangeNeedNonNegNum); 105throw new ArgumentOutOfRangeException(nameof(index), SR.TableCollectionOutOfRangeNeedNonNegNum);
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
73throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 146throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber);
MS\Internal\Ink\InkCanvasSelection.cs (1)
910throw new ArgumentOutOfRangeException(nameof(source), SR.InvalidDiameter);
MS\Internal\IO\Packaging\ByteStream.cs (3)
202throw new ArgumentOutOfRangeException(nameof(offset), 264throw new ArgumentOutOfRangeException(nameof(count), 271throw new ArgumentOutOfRangeException(nameof(offset),
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (1)
123Exception e = new ArgumentOutOfRangeException(nameof(index), ErrorStrings.ArgumentOutOfRange_IndexLargerThanMaxValue);
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (2)
153throw new ArgumentOutOfRangeException(nameof(horizontalPercent), SR.Format(SR.ScrollViewer_OutOfRange, "horizontalPercent", horizontalPercent.ToString(CultureInfo.InvariantCulture), "0", "100")); 157throw new ArgumentOutOfRangeException(nameof(verticalPercent), SR.Format(SR.ScrollViewer_OutOfRange, "verticalPercent", verticalPercent.ToString(CultureInfo.InvariantCulture), "0", "100"));
System\Windows\Controls\Calendar.cs (1)
576throw new ArgumentOutOfRangeException(nameof(d), SR.Calendar_OnSelectedDateChanged_InvalidValue);
System\Windows\Controls\DataGridColumnCollection.cs (1)
66throw new ArgumentOutOfRangeException(nameof(index), SR.Format(SR.DataGrid_ColumnIndexOutOfRange, item.Header));
System\Windows\Controls\DatePicker.cs (1)
1126DatePickerDateValidationErrorEventArgs dateValidationError = new DatePickerDateValidationErrorEventArgs(new ArgumentOutOfRangeException(nameof(text), SR.Calendar_OnSelectedDateChanged_InvalidValue), text);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
679throw new ArgumentOutOfRangeException(parameterName, SR.Format(SR.ScrollViewer_CannotBeNaN, parameterName));
System\Windows\Data\CompositeCollection.cs (1)
242throw new ArgumentOutOfRangeException(nameof(removeIndex),
System\Windows\Documents\DocumentSequence.cs (3)
241throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 266throw new ArgumentOutOfRangeException(nameof(fixedDocPageNumber), SR.IDPNegativePageNumber); 291throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber);
System\Windows\Documents\FixedDocument.cs (2)
323throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 368throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber);
System\Windows\FrameworkContentElement.cs (1)
2099throw new ArgumentOutOfRangeException(nameof(value), SR.TemplateChildIndexOutOfRange);
System\Windows\FrameworkElement.cs (1)
6238throw new ArgumentOutOfRangeException(nameof(value), SR.TemplateChildIndexOutOfRange);
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (4)
350throw new ArgumentOutOfRangeException(nameof(assemblyId), SR.Format(SR.AssemblyIdOutOfSequence, assemblyId)); 377throw new ArgumentOutOfRangeException(nameof(typeId), SR.Format(SR.TypeIdOutOfSequence, typeId)); 401throw new ArgumentOutOfRangeException(nameof(propertyId), SR.Format(SR.PropertyIdOutOfSequence, propertyId)); 419throw new ArgumentOutOfRangeException(nameof(stringId), SR.Format(SR.StringIdOutOfSequence, stringId));
ReachFramework (13)
PrintConfig\DocumentNUp.cs (1)
518throw new ArgumentOutOfRangeException(nameof(value),
PrintConfig\PageCopyCount.cs (1)
85throw new ArgumentOutOfRangeException(nameof(value),
PrintConfig\PageMediaSize.cs (1)
562throw new ArgumentOutOfRangeException((mediaSizeWidth <= 0) ? "mediaSizeWidth" : "mediaSizeHeight",
PrintConfig\PageResolution.cs (2)
348throw new ArgumentOutOfRangeException(nameof(value), 375throw new ArgumentOutOfRangeException(nameof(value),
PrintConfig\PageScaling.cs (1)
523throw new ArgumentOutOfRangeException(nameof(squareScale),
PrintConfig\PrtTicket_Public_Simple.cs (7)
403throw new ArgumentOutOfRangeException(nameof(value), 801throw new ArgumentOutOfRangeException(nameof(value), 807throw new ArgumentOutOfRangeException(nameof(value), 1043throw new ArgumentOutOfRangeException(nameof(value), 1049throw new ArgumentOutOfRangeException(nameof(value), 1106throw new ArgumentOutOfRangeException(nameof(value), 1153throw new ArgumentOutOfRangeException(nameof(value),
Roslyn.Diagnostics.Analyzers (8)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
236return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (6)
82throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 84throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 86throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 147throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 149throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 153throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
95throw new ArgumentOutOfRangeException(paramName: nameof(priority), message: $"Priority must be between 0 and {_itemsByPriority.Length - 1}");
rzc (3)
Json\ThrowHelper.cs (2)
119=> throw new ArgumentOutOfRangeException(paramName, message); 181=> throw new ArgumentOutOfRangeException(paramName, message);
ServerProtocol\ServerRequest.cs (1)
37throw new ArgumentOutOfRangeException(
Shared (1)
Throw\Throw.cs (1)
345=> throw new ArgumentOutOfRangeException(paramName, message);
System.Collections.Concurrent (1)
System\Collections\Concurrent\BlockingCollection.cs (1)
1667throw new ArgumentOutOfRangeException(
System.Collections.Immutable (2)
System\Collections\Frozen\FrozenDictionary.cs (1)
417throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_NeedNonNegNum);
Validation\Requires.cs (1)
105throw new ArgumentOutOfRangeException(parameterName, message);
System.Collections.NonGeneric (9)
System\Collections\CollectionBase.cs (4)
74throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 120throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 126throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 192throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual);
System\Collections\SortedList.cs (5)
199throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 384throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 412if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 514if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 542if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System.Configuration.ConfigurationManager (11)
System\Configuration\IntegerValidator.cs (1)
26throw new ArgumentOutOfRangeException(nameof(minValue), SR.Validator_min_greater_than_max);
System\Configuration\IntegerValidatorAttribute.cs (2)
20throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max); 32throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max);
System\Configuration\LongValidator.cs (1)
26throw new ArgumentOutOfRangeException(nameof(minValue), SR.Validator_min_greater_than_max);
System\Configuration\LongValidatorAttribute.cs (2)
20throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max); 31throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max);
System\Configuration\StringValidatorAttribute.cs (2)
21throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max); 33throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max);
System\Configuration\TimeSpanValidator.cs (1)
26throw new ArgumentOutOfRangeException(nameof(minValue), SR.Validator_min_greater_than_max);
System\Configuration\TimeSpanValidatorAttribute.cs (2)
29throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max); 43throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max);
System.Console (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
162return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\ConsoleKeyInfo.cs (1)
22throw new ArgumentOutOfRangeException(nameof(key), SR.ArgumentOutOfRange_ConsoleKey);
System.Data.Common (3)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
85ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName, message);
System\Data\DataException.cs (1)
341internal static Exception _ArgumentOutOfRange(string paramName, string msg) => TraceExceptionAsReturnValue(new ArgumentOutOfRangeException(paramName, msg));
System\Data\DataSetUtil.cs (1)
30return new ArgumentOutOfRangeException(parameterName, message);
System.Data.Odbc (1)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
85ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName, message);
System.Data.OleDb (1)
System\Data\Common\AdapterUtil.cs (1)
102ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName, message);
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Metrics\Base2ExponentialHistogramAggregator.cs (2)
94throw new ArgumentOutOfRangeException(nameof(scale), SR.Format(SR.InvalidHistogramScale, scale, MinScale, MaxScale)); 103throw new ArgumentOutOfRangeException(nameof(maxBuckets), SR.Format(SR.InvalidHistogramMaxBuckets, maxBuckets, MinBuckets));
System\Diagnostics\Metrics\CircularBufferBuckets.cs (1)
26throw new ArgumentOutOfRangeException(nameof(capacity), "Capacity must be at least 2.");
System.Diagnostics.EventLog (1)
System\Diagnostics\EventLogInternal.cs (1)
264throw new ArgumentOutOfRangeException("MaximumKilobytes", SR.MaximumKilobytesOutOfRange);
System.DirectoryServices (1)
System\DirectoryServices\PropertyCollection.cs (1)
161throw new ArgumentOutOfRangeException(SR.LessThanZero, nameof(index));
System.Drawing.Common (4)
System\Drawing\Bitmap.cs (4)
301throw new ArgumentOutOfRangeException(nameof(x), SR.ValidRangeX); 306throw new ArgumentOutOfRangeException(nameof(y), SR.ValidRangeY); 324throw new ArgumentOutOfRangeException(nameof(x), SR.ValidRangeX); 329throw new ArgumentOutOfRangeException(nameof(y), SR.ValidRangeY);
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.cs (1)
71throw new ArgumentOutOfRangeException(nameof(initialCapacity), SR.ArgumentOutOfRange_NeedNonNegNum);
System.Formats.Tar (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
162return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System.IO.Compression (2)
System\IO\Compression\ZipArchiveEntry.cs (2)
378throw new ArgumentOutOfRangeException(nameof(value), SR.DateTimeOutOfRange); 537throw new ArgumentOutOfRangeException(nameof(access), SR.InvalidFileAccess);
System.IO.Compression.Brotli (4)
System\IO\Compression\enc\BrotliEncoder.cs (4)
79throw new ArgumentOutOfRangeException(nameof(quality), SR.Format(SR.BrotliEncoder_Quality, quality, 0, BrotliUtils.Quality_Max)); 97throw new ArgumentOutOfRangeException(nameof(window), SR.Format(SR.BrotliEncoder_Window, window, BrotliUtils.WindowBits_Min, BrotliUtils.WindowBits_Max)); 205throw new ArgumentOutOfRangeException(nameof(quality), SR.Format(SR.BrotliEncoder_Quality, quality, 0, BrotliUtils.Quality_Max)); 209throw new ArgumentOutOfRangeException(nameof(window), SR.Format(SR.BrotliEncoder_Window, window, BrotliUtils.WindowBits_Min, BrotliUtils.WindowBits_Max));
System.IO.FileSystem.AccessControl (8)
System\IO\FileSystemAclExtensions.cs (3)
143throw new ArgumentOutOfRangeException(nameof(mode), SR.ArgumentOutOfRange_Enum); 148throw new ArgumentOutOfRangeException(nameof(share), SR.ArgumentOutOfRange_Enum); 153throw new ArgumentOutOfRangeException(nameof(bufferSize), SR.ArgumentOutOfRange_NeedPosNum);
System\Security\AccessControl\DirectoryObjectSecurity.cs (3)
331throw new ArgumentOutOfRangeException( 376throw new ArgumentOutOfRangeException( 470throw new ArgumentOutOfRangeException(
System\Security\AccessControl\FileSystemAccessRule.cs (1)
113throw new ArgumentOutOfRangeException(nameof(fileSystemRights), SR.Format(SR.Argument_InvalidEnumValue, fileSystemRights, nameof(AccessControl.FileSystemRights)));
System\Security\AccessControl\FileSystemAuditRule.cs (1)
88throw new ArgumentOutOfRangeException(nameof(fileSystemRights), SR.Format(SR.Argument_InvalidEnumValue, fileSystemRights, nameof(AccessControl.FileSystemRights)));
System.IO.FileSystem.DriveInfo (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
162return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System.IO.FileSystem.Watcher (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
162return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System.IO.MemoryMappedFiles (10)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
162return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (7)
297throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 354throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 403throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_PositiveOrDefaultSizeRequired); 413throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 437throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_PositiveOrDefaultSizeRequired); 447throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 524throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_PositiveOrDefaultCapacityRequired);
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
28throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_CapacityGEFileSizeRequired);
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
88throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed);
System.IO.Pipes (17)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
162return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\IO\Pipes\AnonymousPipeClientStream.cs (1)
93throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg);
System\IO\Pipes\AnonymousPipeServerStream.cs (2)
72throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable); 152throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg);
System\IO\Pipes\NamedPipeClientStream.cs (3)
69throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_OptionsInvalid); 73throw new ArgumentOutOfRangeException(nameof(impersonationLevel), SR.ArgumentOutOfRange_ImpersonationInvalid); 77throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable);
System\IO\Pipes\NamedPipeServerStream.cs (5)
98throw new ArgumentOutOfRangeException(nameof(direction), SR.ArgumentOutOfRange_DirectionModeInOutOrInOut); 102throw new ArgumentOutOfRangeException(nameof(transmissionMode), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg); 106throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_OptionsInvalid); 115throw new ArgumentOutOfRangeException(nameof(maxNumberOfServerInstances), SR.ArgumentOutOfRange_MaxNumServerInstances); 123throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable);
System\IO\Pipes\PipeStream.cs (3)
35throw new ArgumentOutOfRangeException(nameof(direction), SR.ArgumentOutOfRange_DirectionModeInOutOrInOut); 46throw new ArgumentOutOfRangeException(nameof(direction), SR.ArgumentOutOfRange_DirectionModeInOutOrInOut); 50throw new ArgumentOutOfRangeException(nameof(transmissionMode), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg);
System\IO\Pipes\PipeStream.Unix.cs (2)
196throw new ArgumentOutOfRangeException(nameof(pipeName), SR.ArgumentOutOfRange_AnonymousReserved); 413throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg);
System.IO.Ports (22)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
162return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\IO\Ports\SerialPort.cs (16)
158throw new ArgumentOutOfRangeException(nameof(BaudRate), SR.ArgumentOutOfRange_NeedPosNum); 241throw new ArgumentOutOfRangeException(nameof(DataBits), SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, MinDataBits, MaxDataBits)); 330throw new ArgumentOutOfRangeException(nameof(Handshake), SR.ArgumentOutOfRange_Enum); 367throw new ArgumentOutOfRangeException(nameof(Parity), SR.ArgumentOutOfRange_Enum); 435throw new ArgumentOutOfRangeException(nameof(ReadTimeout), SR.ArgumentOutOfRange_Timeout); 455throw new ArgumentOutOfRangeException(nameof(ReceivedBytesThreshold), SR.ArgumentOutOfRange_NeedPosNum); 497throw new ArgumentOutOfRangeException(nameof(StopBits), SR.ArgumentOutOfRange_Enum); 533throw new ArgumentOutOfRangeException(nameof(WriteTimeout), SR.ArgumentOutOfRange_WriteTimeout); 665throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 667throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 806throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 808throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 1197throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 1199throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 1217throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 1219throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNumRequired);
System\IO\Ports\SerialStream.cs (2)
96throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 98throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNumRequired);
System\IO\Ports\SerialStream.Unix.cs (3)
99throw new ArgumentOutOfRangeException(nameof(ReadTimeout), SR.ArgumentOutOfRange_Timeout); 113throw new ArgumentOutOfRangeException(nameof(ReadTimeout), SR.ArgumentOutOfRange_Timeout); 125throw new ArgumentOutOfRangeException(nameof(BaudRate), SR.ArgumentOutOfRange_NeedPosNum);
System.Memory.Data (1)
System\BinaryData.cs (1)
283throw new ArgumentOutOfRangeException(nameof(stream), SR.ArgumentOutOfRange_StreamLengthMustBeNonNegativeInt32);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (1)
294throw new ArgumentOutOfRangeException(nameof(InitialHttp2StreamWindowSize), message);
System.Net.HttpListener (2)
System\Net\HttpListenerPrefixCollection.cs (2)
44throw new ArgumentOutOfRangeException(nameof(array), SR.net_array_too_small); 60throw new ArgumentOutOfRangeException(nameof(array), SR.net_array_too_small);
System.Net.NameResolution (1)
System\Net\Dns.cs (1)
902throw new ArgumentOutOfRangeException(nameof(hostName),
System.Net.Primitives (2)
System\Net\CookieContainer.cs (2)
101throw new ArgumentOutOfRangeException(nameof(perDomainCapacity), SR.Format(SR.net_cookie_capacity_range, "PerDomainCapacity", 0, capacity)); 119throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.net_cookie_capacity_range, "Capacity", 0, m_maxCookiesPerDomain));
System.Net.Quic (2)
System\Net\Quic\QuicStream.Stream.cs (2)
61throw new ArgumentOutOfRangeException(nameof(value), SR.net_quic_timeout_use_gt_zero); 80throw new ArgumentOutOfRangeException(nameof(value), SR.net_quic_timeout_use_gt_zero);
System.Net.Requests (8)
System\Net\FileWebRequest.cs (1)
103throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero);
System\Net\FtpWebRequest.cs (2)
361throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 399throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero);
System\Net\HttpWebRequest.cs (5)
301throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 317throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 856throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero); 1524throw new ArgumentOutOfRangeException(from < 0 ? nameof(from) : nameof(to), SR.net_rangetoosmall); 1528throw new ArgumentOutOfRangeException(nameof(from), SR.net_fromto);
System.Net.Sockets (7)
System\Net\Sockets\NetworkStream.cs (2)
136throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero); 163throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero);
System\Net\Sockets\Socket.cs (4)
2031throw new ArgumentOutOfRangeException(nameof(receivedAddress), SR.net_sockets_address_small); 2410throw new ArgumentOutOfRangeException(nameof(checkRead), SR.Format(SR.net_sockets_toolarge_select, nameof(checkRead), MaxSelect.ToString())); 2414throw new ArgumentOutOfRangeException(nameof(checkWrite), SR.Format(SR.net_sockets_toolarge_select, nameof(checkWrite), MaxSelect.ToString())); 2418throw new ArgumentOutOfRangeException(nameof(checkError), SR.Format(SR.net_sockets_toolarge_select, nameof(checkError), MaxSelect.ToString()));
System\Net\Sockets\Socket.Tasks.cs (1)
419throw new ArgumentOutOfRangeException(nameof(receivedAddress), SR.net_sockets_address_small);
System.Net.WebSockets (1)
System\Net\WebSockets\WebSocketStream.cs (1)
57throw new ArgumentOutOfRangeException(nameof(closeTimeout), SR.net_WebSockets_TimeoutOutOfRange);
System.Numerics.Tensors (1)
System\ThrowHelper.cs (1)
104throw new ArgumentOutOfRangeException("value", SR.ThrowArgument_ValueNonNegative);
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
37throw new ArgumentOutOfRangeException(nameof(dictionaryCreationThreshold), SR.ArgumentOutOfRange_InvalidThreshold);
System.Private.CoreLib (255)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
162return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (3)
1106throw new ArgumentOutOfRangeException(nameof(utf32), SR.ArgumentOutOfRange_InvalidUTF32); 1146throw new ArgumentOutOfRangeException( 1152throw new ArgumentOutOfRangeException(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (31)
39if (capacity < 0) throw new ArgumentOutOfRangeException(nameof(capacity), SR.Format(SR.ArgumentOutOfRange_MustBeNonNegNum, nameof(capacity))); 78throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 123if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 128if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 359throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 375throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 376if (count < 0 || startIndex > _size - count) throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 387if (index < 0 || index > _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 408if (index < 0 || index > _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 453throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLess); 478throw new ArgumentOutOfRangeException(startIndex >= _size ? nameof(startIndex) : nameof(count), SR.ArgumentOutOfRange_BiggerThanCollection); 516if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 594if (index < 0 || index > _size - count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 722if (value < Count) throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 864if (startIndex < 0 || startIndex > Count) throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 865if (count < 0 || startIndex > Count - count) throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 894if (index < 0 || index > Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 932if (startIndex < 0 || startIndex >= _list.Count) throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLess); 933if (count < 0 || count > startIndex + 1) throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 1008throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2233if (value < Count) throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 2364throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2375throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2378throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 2388if (index < 0 || index > _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2398if (index < 0 || index > _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2431throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLess); 2443if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 2484if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 2509if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 2515if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (1)
169throw new ArgumentOutOfRangeException(nameof(concurrencyLevel), SR.ConcurrentDictionary_ConcurrencyLevelMustBePositiveOrNegativeOne);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
265throw new ArgumentOutOfRangeException(nameof(loadFactor), SR.ArgumentOutOfRange_HashtableLoadFactor);
src\runtime\src\libraries\System.Private.CoreLib\src\System\CurrentSystemTimeZone.cs (1)
118throw new ArgumentOutOfRangeException(nameof(year), SR.Format(SR.ArgumentOutOfRange_Range, 1, 9999));
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
131static void ThrowOutOfRange() => throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_AddValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (9)
205private static void ThrowTicksOutOfRange() => throw new ArgumentOutOfRangeException("ticks", SR.ArgumentOutOfRange_DateTimeBadTicks); 207internal static void ThrowMillisecondOutOfRange() => throw new ArgumentOutOfRangeException("millisecond", SR.Format(SR.ArgumentOutOfRange_Range, 0, TimeSpan.MillisecondsPerSecond - 1)); 208internal static void ThrowMicrosecondOutOfRange() => throw new ArgumentOutOfRangeException("microsecond", SR.Format(SR.ArgumentOutOfRange_Range, 0, TimeSpan.MicrosecondsPerMillisecond - 1)); 209private static void ThrowDateArithmetic(int param) => throw new ArgumentOutOfRangeException(param switch { 0 => "value", 1 => "t", _ => "months" }, SR.ArgumentOutOfRange_DateArithmetic); 210private static void ThrowAddOutOfRange() => throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_AddValue); 963if (months < -120000 || months > 120000) throw new ArgumentOutOfRangeException(nameof(months), SR.ArgumentOutOfRange_DateTimeBadMonths); 1025throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_DateTimeBadYears); 1269throw new ArgumentOutOfRangeException(nameof(fileTime), SR.ArgumentOutOfRange_FileTimeInvalid); 1699throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_FileTimeInvalid);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (2)
927static void ThrowOffsetOutOfRange() => throw new ArgumentOutOfRangeException(nameof(offset), SR.Argument_OffsetOutOfRange); 945static void ThrowOutOfRange() => throw new ArgumentOutOfRangeException(nameof(offset), SR.Argument_UTCOutOfRange);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
681throw new ArgumentOutOfRangeException(nameof(decimals), SR.ArgumentOutOfRange_DecimalRound);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventDescriptor.cs (2)
63throw new ArgumentOutOfRangeException(nameof(id), SR.Format(SR.ArgumentOutOfRange_NeedValidId, 1, ushort.MaxValue)); 78throw new ArgumentOutOfRangeException(nameof(task), SR.Format(SR.ArgumentOutOfRange_NeedValidId, 1, ushort.MaxValue));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (1)
671throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (2)
393throw new ArgumentOutOfRangeException(nameof(string1), SR.ArgumentOutOfRange_OffsetLength); 397throw new ArgumentOutOfRangeException(nameof(string2), SR.ArgumentOutOfRange_OffsetLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
519throw new ArgumentOutOfRangeException(nameof(types),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (1)
258throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (1)
107throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (9)
85throw new ArgumentOutOfRangeException(nameof(year), SR.ArgumentOutOfRange_NeedNonNegNum); 134throw new ArgumentOutOfRangeException( 148throw new ArgumentOutOfRangeException(nameof(era), SR.ArgumentOutOfRange_InvalidEraValue); 179throw new ArgumentOutOfRangeException( 210throw new ArgumentOutOfRangeException( 326throw new ArgumentOutOfRangeException(nameof(time), SR.ArgumentOutOfRange_Era); 406throw new ArgumentOutOfRangeException( 446throw new ArgumentOutOfRangeException( 494throw new ArgumentOutOfRangeException(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (2)
163throw new ArgumentOutOfRangeException( 413throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (4)
74throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 76throw new ArgumentOutOfRangeException(nameof(unicode), SR.ArgumentOutOfRange_IndexCountBuffer); 150throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 152throw new ArgumentOutOfRangeException(nameof(ascii), SR.ArgumentOutOfRange_IndexCountBuffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\ISOWeek.cs (2)
141throw new ArgumentOutOfRangeException(nameof(week), SR.ArgumentOutOfRange_Week_ISO); 149throw new ArgumentOutOfRangeException(nameof(dayOfWeek), SR.ArgumentOutOfRange_DayOfWeek);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (2)
94throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 316throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (2)
62throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 384throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (1)
591throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
149throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_NeedNonNegNum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (1)
236throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (1)
72throw new ArgumentOutOfRangeException(nameof(bufferSize), SR.Format(SR.ArgumentOutOfRange_MustBePositive, nameof(bufferSize)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\EnumerationOptions.cs (1)
45throw new ArgumentOutOfRangeException(nameof(searchOption), SR.ArgumentOutOfRange_Enum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (1)
75throw new ArgumentOutOfRangeException(nameof(access), SR.ArgumentOutOfRange_Enum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (5)
262throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 312throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength)); 525throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength)); 548throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength)); 554throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\ReadOnlyMemoryStream.cs (2)
67throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamPosition, int.MaxValue)); 169throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.ArgumentOutOfRange_StreamPosition, int.MaxValue));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.cs (2)
85throw new ArgumentOutOfRangeException(badArg, SR.ArgumentOutOfRange_Enum); 91throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_Enum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (6)
299throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 338throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 527throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 552throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 582throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 606throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (4)
159throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_LengthGreaterThanCapacity); 162throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_UnmanagedMemStreamWrapAround); 164throw new ArgumentOutOfRangeException(nameof(access), SR.ArgumentOutOfRange_Enum); 323throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_UnmanagedMemStreamLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (2)
69throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamPosition, int.MaxValue)); 171throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.ArgumentOutOfRange_StreamPosition, int.MaxValue));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Lazy.cs (1)
151throw new ArgumentOutOfRangeException(nameof(mode), SR.Lazy_ctor_ModeInvalid);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
725throw new ArgumentOutOfRangeException("minValue", SR.Format(SR.Argument_MinMaxValue, "minValue", "maxValue"));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
39throw new ArgumentOutOfRangeException(nameof(type), SR.ArgumentOutOfRange_Enum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (2)
92throw new ArgumentOutOfRangeException(nameof(numBytes), SR.ArgumentOutOfRange_AddressSpace); 95throw new ArgumentOutOfRangeException(nameof(numBytes), SR.ArgumentOutOfRange_UIntPtrMax);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (4)
80throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_Capacity); 178throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexString); 225throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexString); 257throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexString);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (4)
289throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 295throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 374throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 383throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (4)
161throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_PartialWCHAR); 167throw new ArgumentOutOfRangeException(nameof(ptr), SR.ArgumentOutOfRange_PartialWCHAR); 221throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_PartialWCHAR); 280throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_PartialWCHAR);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (3)
1205throw new ArgumentOutOfRangeException(nameof(startIndex), startIndex < 0 ? SR.ArgumentOutOfRange_StartIndex : SR.ArgumentOutOfRange_StartIndexLargerThanLength); 2545throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_StartIndexLargerThanLength); 2550throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (2)
851throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 868throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (2)
232throw new ArgumentOutOfRangeException(nameof(bytes), 236throw new ArgumentOutOfRangeException(nameof(chars),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (5)
58throw new ArgumentOutOfRangeException(nameof(bytes), 97throw new ArgumentOutOfRangeException(nameof(bytes), 101throw new ArgumentOutOfRangeException(nameof(charIndex), 150throw new ArgumentOutOfRangeException(nameof(bytes), 154throw new ArgumentOutOfRangeException(nameof(chars),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (2)
230throw new ArgumentOutOfRangeException(nameof(chars), 234throw new ArgumentOutOfRangeException(nameof(bytes),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (4)
46throw new ArgumentOutOfRangeException(nameof(charUnknownHigh), 51throw new ArgumentOutOfRangeException(nameof(charUnknownLow), 110throw new ArgumentOutOfRangeException(nameof(charUnknownHigh), 115throw new ArgumentOutOfRangeException(nameof(CharUnknownLow),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderLatin1BestFitFallback.cs (2)
56throw new ArgumentOutOfRangeException(nameof(charUnknownHigh), 61throw new ArgumentOutOfRangeException(nameof(charUnknownLow),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (5)
53throw new ArgumentOutOfRangeException(nameof(chars), 87throw new ArgumentOutOfRangeException(nameof(chars), 91throw new ArgumentOutOfRangeException(nameof(byteIndex), 136throw new ArgumentOutOfRangeException(nameof(chars), 140throw new ArgumentOutOfRangeException(nameof(bytes),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderReplacementFallback.cs (2)
121throw new ArgumentOutOfRangeException(nameof(charUnknownHigh), 125throw new ArgumentOutOfRangeException(nameof(charUnknownLow),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (1)
248throw new ArgumentOutOfRangeException(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
166throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\RunePosition.cs (2)
82throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_NeedNonNegNum); 87throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (29)
129throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexLength); 154throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_Capacity); 274throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_Capacity); 278throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 338throw new ArgumentOutOfRangeException(null, SR.InvalidOperation_ConcurrentOperationsNotSupported); 364throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_StartIndexLargerThanLength); 369throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexLength); 435throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 714throw new ArgumentOutOfRangeException(nameof(repeatCount), SR.ArgumentOutOfRange_LengthGreaterThanCapacity); 760throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 809throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 848throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 865throw new ArgumentOutOfRangeException(nameof(Capacity), SR.ArgumentOutOfRange_Capacity); 915throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 967throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1007throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1335throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1362throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1388throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1403throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1419throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1455throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2135throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2139throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2264throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2269throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2391throw new ArgumentOutOfRangeException(nameof(valueCount), SR.ArgumentOutOfRange_LengthGreaterThanCapacity); 2639throw new ArgumentOutOfRangeException("requiredLength", SR.ArgumentOutOfRange_SmallCapacity); 2728throw new ArgumentOutOfRangeException("requiredLength", SR.ArgumentOutOfRange_SmallCapacity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (12)
93throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 150throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 153throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 188throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 191throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 240throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 280throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 283throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 332throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 357throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 1759throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1779throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (13)
101throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 158throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 161throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 196throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 199throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 248throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 288throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 291throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 340throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 473throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 817throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 1082throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1108throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (10)
137throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 194throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 197throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 232throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 235throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 284throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 324throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 327throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 376throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 748throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (2)
819throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 855throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.Sealed.cs (2)
87throw new ArgumentOutOfRangeException( 109throw new ArgumentOutOfRangeException(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (1)
536new ArgumentOutOfRangeException(nameof(options), SR.TaskT_ConfigureAwait_InvalidOptions));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (4)
1512throw new ArgumentOutOfRangeException(nameof(creationOptions), SR.Task_FromAsync_LongRunning); 1514throw new ArgumentOutOfRangeException(nameof(creationOptions), SR.Task_FromAsync_PreferFairness); 3016throw new ArgumentOutOfRangeException(nameof(continuationOptions), SR.Task_ContinueWith_ESandLR); 3035throw new ArgumentOutOfRangeException(nameof(continuationOptions), SR.Task_MultiTaskContinuation_FireOptions);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
538throw new ArgumentOutOfRangeException(nameof(state), SR.ArgumentOutOfRange_Enum);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (2)
1396throw new ArgumentOutOfRangeException(nameof(millisecondsTimeOutInterval), SR.ArgumentOutOfRange_LessEqualToIntegerMaxVal); 1416throw new ArgumentOutOfRangeException(nameof(millisecondsTimeOutInterval), SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (12)
230throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 236throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 242throw new ArgumentOutOfRangeException(null, SR.Overflow_TimeSpanTooLong); 248throw new ArgumentOutOfRangeException(name, SR.ArgumentOutOfRange_RoundingDigits); 626throw new ArgumentOutOfRangeException("precision", SR.Format(SR.Argument_PrecisionTooLarge, StandardFormat.MaxPrecision)); 632throw new ArgumentOutOfRangeException("symbol", SR.Argument_BadFormatSpecifier); 638throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_NeedNonNegNum); 644throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_Enum); 710return new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNum); 712return new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 745return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource)); 755return new ArgumentOutOfRangeException(GetArgumentName(argument) + "[" + paramNumber.ToString() + "]", GetResourceString(resource));
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
84throw new ArgumentOutOfRangeException(nameof(ticks), SR.ArgumentOutOfRange_TimeOnlyBadTicks);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
1320throw new ArgumentOutOfRangeException(nameof(baseUtcOffset), SR.ArgumentOutOfRange_UtcOffset);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.TransitionTime.cs (4)
81throw new ArgumentOutOfRangeException(nameof(month), SR.ArgumentOutOfRange_MonthParam); 87throw new ArgumentOutOfRangeException(nameof(day), SR.ArgumentOutOfRange_DayParam); 93throw new ArgumentOutOfRangeException(nameof(week), SR.ArgumentOutOfRange_Week); 99throw new ArgumentOutOfRangeException(nameof(dayOfWeek), SR.ArgumentOutOfRange_DayOfWeek);
System\GC.NativeAot.cs (6)
155throw new ArgumentOutOfRangeException(nameof(mode), SR.ArgumentOutOfRange_Enum); 212throw new ArgumentOutOfRangeException( 219throw new ArgumentOutOfRangeException( 425throw new ArgumentOutOfRangeException(nameof(lohSize), SR.ArgumentOutOfRange_NoGCLohSizeGreaterTotalSize); 442throw new ArgumentOutOfRangeException(nameof(totalSize), SR.ArgumentOutOfRangeException_NoGCRegionSizeTooLarge); 781throw new ArgumentOutOfRangeException(nameof(kind),
System.Private.DataContractSerialization (91)
System\Runtime\Serialization\Json\XmlJsonReader.cs (8)
723throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 728throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset)); 745throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 750throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 782throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.JsonOffsetExceedsBufferSize, buffer.Length)); 787throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - offset)); 823throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, array.Length)); 828throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, array.Length - offset));
System\Runtime\Serialization\Json\XmlJsonWriter.cs (4)
365throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - index)); 381throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - index)); 407throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - index)); 696throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - index));
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
55throw new ArgumentOutOfRangeException(nameof(i), SR.XmlElementAttributes); 148throw new ArgumentOutOfRangeException(nameof(i), SR.XmlElementAttributes);
System\Text\Base64Encoding.cs (15)
55throw new ArgumentOutOfRangeException(nameof(index), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 58throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - index)); 106throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 110throw new ArgumentOutOfRangeException(nameof(charCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)); 115throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 179throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 183throw new ArgumentOutOfRangeException(nameof(charCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)); 188throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 248throw new ArgumentOutOfRangeException(nameof(byteCount), SR.Format(SR.ValueMustBeInRange, 0, int.MaxValue / 4 * 3 - 2)); 262throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 265throw new ArgumentOutOfRangeException(nameof(byteCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)); 271throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 346throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 349throw new ArgumentOutOfRangeException(nameof(byteCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)); 355throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length));
System\Text\BinHexEncoding.cs (7)
29throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 32throw new ArgumentOutOfRangeException(nameof(charCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)); 36throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 54throw new ArgumentOutOfRangeException(nameof(byteCount), SR.Format(SR.ValueMustBeInRange, 0, int.MaxValue / 2)); 68throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 71throw new ArgumentOutOfRangeException(nameof(byteCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)); 76throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length));
System\Xml\UniqueId.cs (7)
72throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, guid.Length)); 100throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 103throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 206throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 209throw new ArgumentOutOfRangeException(nameof(chars), SR.Format(SR.XmlArrayTooSmallOutput, count)); 286throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 289throw new ArgumentOutOfRangeException(nameof(buffer), SR.Format(SR.XmlArrayTooSmallOutput, guidLength));
System\Xml\XmlBaseReader.cs (10)
502throw new ArgumentOutOfRangeException(nameof(index), SR.XmlElementAttributes); 505throw new ArgumentOutOfRangeException(nameof(index), SR.Format(SR.OffsetExceedsBufferSize, _attributeCount)); 1132throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 1135throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 1160throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 1163throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset)); 1348throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 1351throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset)); 1384throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 1387throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset));
System\Xml\XmlBaseWriter.cs (3)
1030throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 1082throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 1445throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset));
System\Xml\XmlBinaryReader.cs (4)
50throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 53throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset)); 1231throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, array.Length)); 1234throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, array.Length - offset));
System\Xml\XmlBinaryReaderSession.cs (1)
26throw new ArgumentOutOfRangeException(nameof(id), SR.XmlInvalidID);
System\Xml\XmlBinaryWriter.cs (2)
1281throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, array.Length)); 1284throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, array.Length - offset));
System\Xml\XmlCanonicalWriter.cs (21)
210throw new ArgumentOutOfRangeException(nameof(prefixOffset), SR.Format(SR.OffsetExceedsBufferSize, prefixBuffer.Length)); 213throw new ArgumentOutOfRangeException(nameof(prefixLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, prefixBuffer.Length - prefixOffset)); 218throw new ArgumentOutOfRangeException(nameof(localNameOffset), SR.Format(SR.OffsetExceedsBufferSize, localNameBuffer.Length)); 221throw new ArgumentOutOfRangeException(nameof(localNameLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, localNameBuffer.Length - localNameOffset)); 364throw new ArgumentOutOfRangeException(nameof(ns), SR.Format(SR.CombinedPrefixNSLength, int.MaxValue / maxBytesPerChar)); 367throw new ArgumentOutOfRangeException(nameof(ns), SR.Format(SR.CombinedPrefixNSLength, int.MaxValue / maxBytesPerChar)); 386throw new ArgumentOutOfRangeException(nameof(prefixOffset), SR.Format(SR.OffsetExceedsBufferSize, prefixBuffer.Length)); 389throw new ArgumentOutOfRangeException(nameof(prefixLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, prefixBuffer.Length - prefixOffset)); 394throw new ArgumentOutOfRangeException(nameof(nsOffset), SR.Format(SR.OffsetExceedsBufferSize, nsBuffer.Length)); 397throw new ArgumentOutOfRangeException(nameof(nsLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, nsBuffer.Length - nsOffset)); 400throw new ArgumentOutOfRangeException(nameof(nsLength), SR.Format(SR.CombinedPrefixNSLength, int.MaxValue)); 437throw new ArgumentOutOfRangeException(nameof(prefixOffset), SR.Format(SR.OffsetExceedsBufferSize, prefixBuffer.Length)); 440throw new ArgumentOutOfRangeException(nameof(prefixLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, prefixBuffer.Length - prefixOffset)); 445throw new ArgumentOutOfRangeException(nameof(localNameOffset), SR.Format(SR.OffsetExceedsBufferSize, localNameBuffer.Length)); 448throw new ArgumentOutOfRangeException(nameof(localNameLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, localNameBuffer.Length - localNameOffset)); 508throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 511throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 563throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 566throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 600throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 603throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset));
System\Xml\XmlDictionaryReader.cs (2)
1011throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, array.Length)); 1014throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, array.Length - offset));
System\Xml\XmlDictionaryString.cs (1)
30throw new ArgumentOutOfRangeException(nameof(key), SR.Format(SR.ValueMustBeInRange, MinKey, MaxKey));
System\Xml\XmlDictionaryWriter.cs (2)
442throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, array.Length)); 445throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, array.Length - offset));
System\Xml\XmlUTF8TextReader.cs (2)
562throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 565throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset));
System.Private.Windows.Core (1)
System\Collections\Generic\ArrayBuilder.cs (1)
52throw new ArgumentOutOfRangeException(nameof(item), "Collection is at max capacity.");
System.Reflection.Metadata (4)
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (1)
428throw new ArgumentOutOfRangeException(nameof(typeHandle), SR.Format(SR.UnexpectedHandleKind, typeHandle.Kind));
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (1)
91throw new ArgumentOutOfRangeException(nameof(typeSystemRowCounts), SR.Format(SR.RowCountOutOfRange, i));
System\Reflection\Throw.cs (2)
125throw new ArgumentOutOfRangeException(parameterName, message); 131throw new ArgumentOutOfRangeException(parameterName, SR.BlobTooLarge);
System.Runtime.Caching (2)
System\Runtime\Caching\MemoryCache.cs (2)
237throw new ArgumentOutOfRangeException(nameof(policy), RH.Format(SR.Argument_out_of_range, "SlidingExpiration", ObjectCache.NoSlidingExpiration, s_oneYear)); 246throw new ArgumentOutOfRangeException(nameof(policy), RH.Format(SR.Argument_out_of_range, "Priority", CacheItemPriority.Default, CacheItemPriority.NotRemovable));
System.Runtime.Numerics (1)
System\ThrowHelper.cs (1)
27throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_NeedNonNegNum);
System.Runtime.Serialization.Formatters (5)
System\Runtime\Serialization\ObjectManager.cs (5)
619throw new ArgumentOutOfRangeException(nameof(objectID), SR.ArgumentOutOfRange_ObjectID); 668throw new ArgumentOutOfRangeException(nameof(objectID), SR.ArgumentOutOfRange_ObjectID); 929throw new ArgumentOutOfRangeException(objectToBeFixed <= 0 ? nameof(objectToBeFixed) : nameof(objectRequired), SR.Serialization_IdTooSmall); 947throw new ArgumentOutOfRangeException(objectToBeFixed <= 0 ? nameof(objectToBeFixed) : nameof(objectRequired), SR.Serialization_IdTooSmall); 968throw new ArgumentOutOfRangeException(arrayToBeFixed <= 0 ? nameof(arrayToBeFixed) : nameof(objectRequired), SR.Serialization_IdTooSmall);
System.Security.AccessControl (26)
System\Security\AccessControl\ACE.cs (10)
83throw new ArgumentOutOfRangeException( 178throw new ArgumentOutOfRangeException( 186throw new ArgumentOutOfRangeException( 566throw new ArgumentOutOfRangeException( 613throw new ArgumentOutOfRangeException( 619throw new ArgumentOutOfRangeException( 950throw new ArgumentOutOfRangeException( 956throw new ArgumentOutOfRangeException( 1041_ => throw new ArgumentOutOfRangeException(nameof(qualifier), SR.ArgumentOutOfRange_Enum), 1346_ => throw new ArgumentOutOfRangeException(nameof(qualifier), SR.ArgumentOutOfRange_Enum),
System\Security\AccessControl\ACL.cs (4)
111throw new ArgumentOutOfRangeException(nameof(array), SR.ArgumentOutOfRange_ArrayTooSmall); 181throw new ArgumentOutOfRangeException(nameof(binaryForm), SR.ArgumentOutOfRange_ArrayTooSmall); 195throw new ArgumentOutOfRangeException(nameof(binaryForm), SR.ArgumentOutOfRange_ArrayTooSmall); 1530throw new ArgumentOutOfRangeException(
System\Security\AccessControl\CommonObjectSecurity.cs (3)
262throw new ArgumentOutOfRangeException( 303throw new ArgumentOutOfRangeException( 382throw new ArgumentOutOfRangeException(
System\Security\AccessControl\Rules.cs (6)
41throw new ArgumentOutOfRangeException( 47throw new ArgumentOutOfRangeException( 116throw new ArgumentOutOfRangeException(nameof(type), SR.ArgumentOutOfRange_Enum); 121throw new ArgumentOutOfRangeException( 127throw new ArgumentOutOfRangeException( 207throw new ArgumentOutOfRangeException(nameof(auditFlags), SR.ArgumentOutOfRange_Enum);
System\Security\AccessControl\SecurityDescriptor.cs (3)
205throw new ArgumentOutOfRangeException( 352throw new ArgumentOutOfRangeException( 360throw new ArgumentOutOfRangeException(nameof(binaryForm),
System.Security.Cryptography (34)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
140throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 156throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (2)
605throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_KOut_Too_Large); 610throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_NeedNonNegNum);
System\Security\Cryptography\Aes.cs (3)
66throw new ArgumentOutOfRangeException( 73throw new ArgumentOutOfRangeException( 395throw new ArgumentOutOfRangeException(
System\Security\Cryptography\AsnEncodedDataCollection.cs (2)
73throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 92throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\Base64Transforms.cs (1)
391public static void ThrowArgumentOutOfRange(ExceptionArgument argument) => throw new ArgumentOutOfRangeException(argument.ToString(), SR.ArgumentOutOfRange_NeedNonNegNum);
System\Security\Cryptography\DSASignatureFormat.cs (1)
45new ArgumentOutOfRangeException(
System\Security\Cryptography\HKDF.cs (2)
98throw new ArgumentOutOfRangeException(nameof(outputLength), SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength)); 159throw new ArgumentOutOfRangeException(nameof(outputLength), SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength));
System\Security\Cryptography\OidCollection.cs (2)
79throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 97throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\PemEncoding.cs (2)
385throw new ArgumentOutOfRangeException(nameof(labelLength), SR.Argument_PemEncoding_EncodedSizeTooLarge); 387throw new ArgumentOutOfRangeException(nameof(dataLength), SR.Argument_PemEncoding_EncodedSizeTooLarge);
System\Security\Cryptography\SymmetricAlgorithm.cs (5)
387throw new ArgumentOutOfRangeException(nameof(plaintextLength), SR.Cryptography_PlaintextTooLarge); 392throw new ArgumentOutOfRangeException(nameof(paddingMode), SR.Cryptography_InvalidPaddingMode); 466throw new ArgumentOutOfRangeException(nameof(plaintextLength), SR.Cryptography_PlaintextTooLarge); 471throw new ArgumentOutOfRangeException(nameof(paddingMode), SR.Cryptography_InvalidPaddingMode); 1668throw new ArgumentOutOfRangeException(nameof(paddingMode), SR.Cryptography_InvalidPaddingMode);
System\Security\Cryptography\UniversalCryptoTransform.cs (4)
76throw new ArgumentOutOfRangeException(nameof(inputCount), SR.Cryptography_MustTransformWholeBlock); 78throw new ArgumentOutOfRangeException(nameof(inputCount), SR.Argument_InvalidOffLen); 83throw new ArgumentOutOfRangeException(nameof(outputOffset), SR.Argument_InvalidOffLen); 98throw new ArgumentOutOfRangeException(nameof(inputCount), SR.Argument_InvalidOffLen);
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (4)
23throw new ArgumentOutOfRangeException(nameof(emailAddress), SR.Arg_EmptyOrNullString); 31throw new ArgumentOutOfRangeException(nameof(dnsName), SR.Arg_EmptyOrNullString); 63throw new ArgumentOutOfRangeException(nameof(registeredId), SR.Arg_EmptyOrNullString); 71throw new ArgumentOutOfRangeException(nameof(upn), SR.Arg_EmptyOrNullString);
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (2)
47throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 65throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (2)
44throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 84throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System.Security.Cryptography.Pkcs (10)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
140throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 156throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (3)
42throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 89throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 105throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (3)
34throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 64throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 79throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
385throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (1)
62throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
41throw new ArgumentOutOfRangeException(nameof(value), SR.Cryptography_Xml_InvalidKeySize);
System.Security.Principal.Windows (1)
System\Security\Principal\SID.cs (1)
411throw new ArgumentOutOfRangeException(nameof(binaryForm), SR.ArgumentOutOfRange_ArrayTooSmall);
System.ServiceModel.Federation (2)
System\ServiceModel\Federation\WsTrustTokenParameters.cs (2)
128? throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.IssuedTokenRenewalThresholdPercentageIncorrect, value)) 156? throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.MaxIssuedTokenCachingTimeMustBeGreaterThanTimeSpanZero, value))
System.ServiceModel.Http (2)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
54new ArgumentOutOfRangeException("bindingElement.MaxReceivedMessageSize",
System\ServiceModel\WSHttpBindingBase.cs (1)
73new ArgumentOutOfRangeException(nameof(MaxReceivedMessageSize),
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\NetFramingTransportChannelFactory.cs (1)
59new ArgumentOutOfRangeException("bindingElement.MaxReceivedMessageSize",
System.ServiceModel.Primitives (82)
Internals\System\Text\BinHexEncoding.cs (14)
49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charCount), SRP.ValueMustBeNonNegative)); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charIndex), SRP.ValueMustBeNonNegative)); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charIndex), SRP.Format(SRP.OffsetExceedsBufferSize, chars.Length))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charCount), SRP.ValueMustBeNonNegative)); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charCount), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteIndex), SRP.ValueMustBeNonNegative)); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteIndex), SRP.Format(SRP.OffsetExceedsBufferSize, bytes.Length))); 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteCount), SRP.Format(SRP.ValueMustBeInRange, 0, int.MaxValue / 2))); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteIndex), SRP.ValueMustBeNonNegative)); 133throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteIndex), SRP.Format(SRP.OffsetExceedsBufferSize, bytes.Length))); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteCount), SRP.ValueMustBeNonNegative)); 137throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteCount), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charIndex), SRP.ValueMustBeNonNegative)); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charIndex), SRP.Format(SRP.OffsetExceedsBufferSize, chars.Length)));
Internals\System\Xml\XmlMtomReader.cs (24)
1213throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 1215throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 1217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 1219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1260throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 1262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 1264throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 1266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1305throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 1307throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 1309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 1311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1363throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 1365throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, chars.Length))); 1367throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 1369throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 2188throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 2190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 2192throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 2194throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 2926throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 2928throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 2930throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 2932throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
Internals\System\Xml\XmlMtomWriter.cs (4)
71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maxSizeInBytes), SRP.ValueMustBeNonNegative)); 317throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index), SRP.ValueMustBeNonNegative)); 320throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - index)));
System\IdentityModel\Psha1DerivedKeyGenerator.cs (2)
68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(derivedKeySize), SRP.ValueMustBeNonNegative)); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(position), SRP.Format(SRP.ValueMustBeInRange, 0, _position)));
System\IdentityModel\Selectors\KerberosSecurityTokenProvider.cs (1)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(tokenImpersonationLevel),
System\IdentityModel\Tokens\BinaryKeyIdentifierClause.cs (2)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(identificationData), SRP.LengthMustBeGreaterThanZero)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative));
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
23throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(tokenImpersonationLevel),
System\ServiceModel\Channels\ChannelDemuxer.cs (1)
77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.ValueMustBeGreaterThanZero));
System\ServiceModel\Channels\CommunicationObject.cs (2)
234new ArgumentOutOfRangeException(nameof(timeout), SRP.SFxTimeoutOutOfRange0)); 511new ArgumentOutOfRangeException(nameof(timeout), SRP.SFxTimeoutOutOfRange0));
System\ServiceModel\Description\ContractDescription.cs (1)
66new ArgumentOutOfRangeException(nameof(value), SRP.SFxContractDescriptionNameCannotBeEmpty));
System\ServiceModel\Description\OperationDescription.cs (1)
32new ArgumentOutOfRangeException(nameof(name), SRP.SFxOperationDescriptionNameCannotBeEmpty));
System\ServiceModel\FaultContractAttribute.cs (1)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value),
System\ServiceModel\MessageContractAttribute.cs (1)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value),
System\ServiceModel\MessageContractMemberAttribute.cs (1)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value),
System\ServiceModel\MessageParameterAttribute.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value),
System\ServiceModel\OperationContractAttribute.cs (1)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value),
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (2)
114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.Format(SRP.ValueMustBeInRange, 1, 100))); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.TimeSpanMustbeGreaterThanTimeSpanZero));
System\ServiceModel\Security\RequestSecurityToken.cs (1)
203throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.ValueMustBeNonNegative));
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
265throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.ValueMustBeNonNegative));
System\ServiceModel\Security\SecurityProtocolFactory.cs (2)
280throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.TimeSpanMustbeGreaterThanTimeSpanZero)); 371throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.TimeSpanMustbeGreaterThanTimeSpanZero));
System\ServiceModel\Security\SecuritySessionClientSettings.cs (2)
83throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.TimeSpanMustbeGreaterThanTimeSpanZero)); 100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.TimeSpanMustbeGreaterThanTimeSpanZero));
System\ServiceModel\Security\SecurityStandardsManager.cs (1)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(messageSecurityVersion), SRP.MessageSecurityVersionOutOfRange));
System\ServiceModel\Security\SecurityTimestamp.cs (1)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ArgumentOutOfRangeException(nameof(creationTimeUtc), SRP.CreationTimeUtcIsAfterExpiryTime));
System\ServiceModel\Security\Tokens\BinarySecretSecurityToken.cs (2)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(keySizeInBits), SRP.Format(SRP.ValueMustBeInRange, 0, 512))); 37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(keySizeInBits), SRP.Format(SRP.KeyLengthMustBeMultipleOfEight, keySizeInBits)));
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (1)
118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.ValueMustBeNonNegative));
System\ServiceModel\Security\WSKeyInfoSerializer.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(securityVersion), SRP.MessageSecurityVersionOutOfRange));
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maximumKeyDerivationOffset), SRP.ValueMustBeNonNegative)); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maximumKeyDerivationLabelLength), SRP.ValueMustBeNonNegative)); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maximumKeyDerivationNonceLength), SRP.ValueMustBeGreaterThanZero)); 118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(securityVersion), SRP.MessageSecurityVersionOutOfRange));
System\ServiceModel\Security\WSTrust.cs (1)
602throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(defaultKeySize), SRP.ValueMustBeNonNegative));
System\ServiceModel\Security\XmlHelper.cs (3)
309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(idPrefix), SRP.Format(SRP.ValueMustBeGreaterThanZero))); 314throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(idPrefix), SRP.Format(SRP.InValidateIdPrefix, idPrefix[0]))); 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(idPrefix), SRP.Format(SRP.InValidateId, idPrefix[i])));
System\ServiceModel\ServiceContractAttribute.cs (2)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), 50throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value),
System.Speech (24)
AudioFormat\SpeechAudioFormatInfo.cs (5)
23throw new ArgumentOutOfRangeException(nameof(samplesPerSecond), SR.Get(SRID.MustBeGreaterThanZero)); 27throw new ArgumentOutOfRangeException(nameof(bitsPerSample), SR.Get(SRID.MustBeGreaterThanZero)); 31throw new ArgumentOutOfRangeException(nameof(channelCount), SR.Get(SRID.MustBeGreaterThanZero)); 69throw new ArgumentOutOfRangeException(nameof(averageBytesPerSecond), SR.Get(SRID.MustBeGreaterThanZero)); 73throw new ArgumentOutOfRangeException(nameof(blockAlign), SR.Get(SRID.MustBeGreaterThanZero));
Internal\SeekableReadStream.cs (1)
92throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.MustBeGreaterThanZero));
Recognition\Grammar.cs (2)
221throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.GrammarInvalidWeight)); 246throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.GrammarInvalidPriority));
Recognition\GrammarBuilder.cs (1)
353throw new ArgumentOutOfRangeException(minParamName, SR.Get(SRID.InvalidMinRepeat, minRepeat));
Recognition\RecognizerBase.cs (3)
948throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.NegativeTimesNotSupported)); 970throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.NegativeTimesNotSupported)); 1202throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.MaxAlternatesInvalid));
Recognition\SpeechRecognitionEngine.cs (2)
159throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.EndSilenceOutOfRange)); 172throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.EndSilenceOutOfRange));
Recognition\SrgsGrammar\SrgsItem.cs (4)
85throw new ArgumentOutOfRangeException(nameof(minRepeat), SR.Get(SRID.InvalidMinRepeat, minRepeat)); 89throw new ArgumentOutOfRangeException(nameof(maxRepeat), SR.Get(SRID.InvalidMinRepeat, maxRepeat)); 128throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.InvalidRepeatProbability, value)); 160throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.InvalidWeight, value));
Result\RecognizedAudio.cs (2)
77throw new ArgumentOutOfRangeException(nameof(audioPosition), SR.Get(SRID.NegativeTimesNotSupported)); 81throw new ArgumentOutOfRangeException(nameof(duration), SR.Get(SRID.NegativeTimesNotSupported));
Synthesis\SpeechSynthesizer.cs (3)
65throw new ArgumentOutOfRangeException(nameof(voiceAlternate), SR.Get(SRID.PromptBuilderInvalidVariant)); 419throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.RateOutOfRange)); 434throw new ArgumentOutOfRangeException(nameof(value), SR.Get(SRID.ResourceUsageOutOfRange));
Synthesis\VoiceInfo.cs (1)
110throw new ArgumentOutOfRangeException(nameof(voiceAlternate), SR.Get(SRID.PromptBuilderInvalidVariant));
System.Text.Encoding.CodePages (65)
System\Text\DBCSCodePageEncoding.cs (4)
1110throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1122throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1130throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1140throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\DecoderNLS.cs (12)
85throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 88throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 103throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 126throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 129throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 132throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 155throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 175throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 178throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 181throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 184throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 208throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum);
System\Text\EncoderBestFitFallback.cs (2)
89throw new ArgumentOutOfRangeException(nameof(charUnknownHigh), SR.Format(SR.ArgumentOutOfRange_Range, 0xD800, 0xDBFF)); 92throw new ArgumentOutOfRangeException(nameof(charUnknownLow), SR.Format(SR.ArgumentOutOfRange_Range, 0xDC00, 0xDFFF));
System\Text\EncoderNLS.cs (12)
83throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 86throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 101throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 115throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 118throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 121throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 143throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 160throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 163throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 166throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 169throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 193throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum);
System\Text\EncodingNLS.cs (19)
54throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 57throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 87throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 104throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 107throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 110throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 141throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 144throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 147throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 176throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 192throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 195throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 214throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 229throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 232throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 235throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 264throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 280throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 283throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer);
System\Text\GB18030Encoding.cs (4)
745throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 757throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 765throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 776throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\ISCIIEncoding.cs (4)
79throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 91throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 101throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 113throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\ISO2022Encoding.cs (4)
1694throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1739throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1747throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1775throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\SBCSCodePageEncoding.cs (4)
893throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 904throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 911throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 921throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System.Text.Encodings.Web (1)
System\ThrowHelper.cs (1)
51return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
System.Text.Json (7)
System\Text\Json\Document\JsonDocumentOptions.cs (1)
34throw new ArgumentOutOfRangeException(nameof(value), SR.JsonDocumentDoesNotSupportComments);
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
663throw new ArgumentOutOfRangeException(nameof(value), SR.JsonSerializerDoesNotSupportComments);
System\Text\Json\ThrowHelper.cs (4)
48return new ArgumentOutOfRangeException(parameterName, message); 60throw new ArgumentOutOfRangeException(paramName, SR.ArrayIndexNegative); 66throw new ArgumentOutOfRangeException(nameof(typeToConvert), SR.Format(SR.SerializerConverterFactoryInvalidArgument, typeToConvert.FullName)); 72throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_Generic_MustBeNonNegative);
System\ThrowHelper.cs (1)
51return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\ThrowHelper.cs (1)
20throw new ArgumentOutOfRangeException(GetStringForExceptionArgument(arg), GetStringForExceptionResource(resource));
System.Threading (2)
System\Threading\Barrier.cs (2)
345throw new ArgumentOutOfRangeException(nameof(participantCount), 444throw new ArgumentOutOfRangeException(nameof(participantCount),
System.Threading.AccessControl (2)
System\Threading\SemaphoreAcl.cs (2)
36throw new ArgumentOutOfRangeException(nameof(initialCount), SR.ArgumentOutOfRange_NeedNonNegNum); 41throw new ArgumentOutOfRangeException(nameof(maximumCount), SR.ArgumentOutOfRange_NeedPosNum);
System.Threading.Tasks.Dataflow (6)
Base\DataflowBlock.cs (2)
848if (!Common.IsValidTimeout(timeout)) throw new ArgumentOutOfRangeException(nameof(timeout), SR.ArgumentOutOfRange_NeedNonNegOrNegative1); 930if (!Common.IsValidTimeout(timeout)) throw new ArgumentOutOfRangeException(nameof(timeout), SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
Blocks\BatchBlock.cs (2)
49if (batchSize < 1) throw new ArgumentOutOfRangeException(nameof(batchSize), SR.ArgumentOutOfRange_GenericPositive); 51if (dataflowBlockOptions.BoundedCapacity > 0 && dataflowBlockOptions.BoundedCapacity < batchSize) throw new ArgumentOutOfRangeException(nameof(batchSize), SR.ArgumentOutOfRange_BatchSizeMustBeNoGreaterThanBoundedCapacity);
Blocks\BatchedJoinBlock.cs (2)
57if (batchSize < 1) throw new ArgumentOutOfRangeException(nameof(batchSize), SR.ArgumentOutOfRange_GenericPositive); 302if (batchSize < 1) throw new ArgumentOutOfRangeException(nameof(batchSize), SR.ArgumentOutOfRange_GenericPositive);
System.Windows.Forms (22)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (13)
325throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange); 495throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange); 568throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange); 573throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange); 1331throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_RowIndexOutOfRange); 1399throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_IndexDestinationOutOfRange); 1404throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange); 1457throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_RowIndexOutOfRange); 1586throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange); 1591throw new ArgumentOutOfRangeException(nameof(indexDestination), SR.DataGridViewRowCollection_IndexDestinationOutOfRange); 1596throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange); 1761throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_IndexDestinationOutOfRange); 2165throw new ArgumentOutOfRangeException(nameof(index), SR.DataGridViewRowCollection_RowIndexOutOfRange);
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
128throw new ArgumentOutOfRangeException(nameof(DisplayIndex), SR.ColumnHeaderBadDisplayIndex);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
1674throw new ArgumentOutOfRangeException(nameof(TileSize), SR.ListViewTileSizeMustBePositive);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
553throw new ArgumentOutOfRangeException(nameof(IndentCount), SR.ListViewIndentCountCantBeNegative);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (2)
1757throw new ArgumentOutOfRangeException(nameof(x), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture))); 1762throw new ArgumentOutOfRangeException(nameof(y), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture)));
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1238throw new ArgumentOutOfRangeException(nameof(value), SR.SelTabCountRange);
System\Windows\Forms\Rendering\TextRenderer.cs (1)
374throw new ArgumentOutOfRangeException(nameof(flags), SR.TextFormatFlagsModifyStringNotAllowed);
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
356throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'"));
System\Windows\Forms\Scrolling\ScrollProperties.cs (1)
223throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'"));
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\WindowsListView.cs (1)
1658throw new ArgumentOutOfRangeException(sbFlag == NativeMethods.SB_HORZ ? "horizontalPercent" : "verticalPercent", SR.ScrollBarOutOfRange);
MS\Internal\AutomationProxies\WindowsScroll.cs (1)
283throw new ArgumentOutOfRangeException(sbFlag == NativeMethods.SB_HORZ ? "horizontalPercent" : "verticalPercent", SR.ScrollBarOutOfRange);
MS\Internal\AutomationProxies\WindowsTab.cs (1)
492throw new ArgumentOutOfRangeException(nameof(horizontalPercent), SR.ScrollBarOutOfRange);