30 references to ValueMustBeInRange
System.ServiceModel.Primitives (30)
Internals\System\Text\BinHexEncoding.cs (1)
117throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteCount), SRP.Format(SRP.ValueMustBeInRange, 0, int.MaxValue / 2)));
System\IdentityModel\Psha1DerivedKeyGenerator.cs (1)
72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(position), SRP.Format(SRP.ValueMustBeInRange, 0, _position)));
System\ServiceModel\Channels\BinaryMessageEncoder.cs (4)
1018SRP.Format(SRP.ValueMustBeInRange, 0, 0x4000))); 1041SRP.Format(SRP.ValueMustBeInRange, 0, 0xFF))); 1067SRP.Format(SRP.ValueMustBeInRange, 'a', 'z'))); 1111SRP.Format(SRP.ValueMustBeInRange, 1, 4)));
System\ServiceModel\Channels\LocalClientSecuritySettings.cs (1)
168SRP.Format(SRP.ValueMustBeInRange, 0, 100)));
System\ServiceModel\Channels\MessageHeaders.cs (11)
400SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 577SRP.Format(SRP.ValueMustBeInRange, 0, collection._headerCount))); 637SRP.Format(SRP.ValueMustBeInRange, 0, array.Length - _headerCount))); 1000SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1108SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1219SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1400SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1596SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1614SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1777SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount))); 1809SRP.Format(SRP.ValueMustBeInRange, 0, _headerCount)));
System\ServiceModel\Channels\MessageProperties.cs (1)
828SRP.Format(SRP.ValueMustBeInRange, 0, array.Length - _propertyCount)));
System\ServiceModel\Channels\MtomMessageEncoder.cs (1)
466SRP.Format(SRP.ValueMustBeInRange, 0, maxMessageSize)));
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (2)
109SRP.Format(SRP.ValueMustBeInRange, 0, 16384))); 141SRP.Format(SRP.ValueMustBeInRange, 0, 4096)));
System\ServiceModel\Channels\SequenceRangeCollection.cs (1)
195SRP.Format(SRP.ValueMustBeInRange, 0, _ranges.Length - 1)));
System\ServiceModel\Channels\TextMessageEncoder.cs (1)
512SRP.Format(SRP.ValueMustBeInRange, 0, maxMessageSize)), message);
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.Format(SRP.ValueMustBeInRange, 1, 100)));
System\ServiceModel\Security\Tokens\BinarySecretSecurityToken.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(keySizeInBits), SRP.Format(SRP.ValueMustBeInRange, 0, 512)));
System\ServiceModel\SynchronizedCollection.cs (3)
83SRP.Format(SRP.ValueMustBeInRange, 0, Items.Count - 1))); 147SRP.Format(SRP.ValueMustBeInRange, 0, Items.Count))); 190SRP.Format(SRP.ValueMustBeInRange, 0, Items.Count - 1)));
System\ServiceModel\SynchronizedKeyedCollection.cs (1)
48SRP.Format(SRP.ValueMustBeInRange, -1, int.MaxValue)));