122 references to ThrowIfLessThan
Microsoft.AspNetCore.Http.Connections (1)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (1)
163ArgumentOutOfRangeException.ThrowIfLessThan(value, other, paramName);
Microsoft.AspNetCore.HttpLogging (4)
HttpLoggingAttribute.cs (2)
52ArgumentOutOfRangeException.ThrowIfLessThan(value, 0, nameof(RequestBodyLogLimit)); 80ArgumentOutOfRangeException.ThrowIfLessThan(value, 0, nameof(ResponseBodyLogLimit));
HttpLoggingEndpointConventionBuilderExtensions.cs (2)
30ArgumentOutOfRangeException.ThrowIfLessThan(requestBodyLogLimit.Value, 0, nameof(requestBodyLogLimit)); 35ArgumentOutOfRangeException.ThrowIfLessThan(responseBodyLogLimit.Value, 0, nameof(responseBodyLogLimit));
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\NativeInterop\SocketAddress.cs (1)
22ArgumentOutOfRangeException.ThrowIfLessThan(size, WriteableOffset);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\NativeInterop\SocketAddress.cs (1)
22ArgumentOutOfRangeException.ThrowIfLessThan(size, WriteableOffset);
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\HttpSys\NativeInterop\SocketAddress.cs (1)
22ArgumentOutOfRangeException.ThrowIfLessThan(size, WriteableOffset);
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (1)
163ArgumentOutOfRangeException.ThrowIfLessThan(value, other, paramName);
Microsoft.AspNetCore.SignalR.Core (1)
HubOptions.cs (1)
68ArgumentOutOfRangeException.ThrowIfLessThan(value, 1);
Microsoft.AspNetCore.WebUtilities (1)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (1)
163ArgumentOutOfRangeException.ThrowIfLessThan(value, other, paramName);
Microsoft.Extensions.Features (1)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (1)
163ArgumentOutOfRangeException.ThrowIfLessThan(value, other, paramName);
PresentationCore (6)
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
506ArgumentOutOfRangeException.ThrowIfLessThan(cpFirst, characterHit.FirstCharacterIndex - cchLength);
System\Windows\FontStretch.cs (1)
46ArgumentOutOfRangeException.ThrowIfLessThan(stretchValue, 1);
System\Windows\FontWeight.cs (1)
44ArgumentOutOfRangeException.ThrowIfLessThan(weightValue, 1);
System\Windows\Media\Imaging\BitmapSource.cs (2)
745ArgumentOutOfRangeException.ThrowIfLessThan(stride, minStride); 748ArgumentOutOfRangeException.ThrowIfLessThan(bufferSize, minRequiredDestSize);
System\Windows\Media\Imaging\JpegBitmapEncoder.cs (1)
66ArgumentOutOfRangeException.ThrowIfLessThan(value, 1);
PresentationFramework (17)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
465ArgumentOutOfRangeException.ThrowIfLessThan(position, -1);
MS\Internal\Data\CompositeCollectionView.cs (1)
315ArgumentOutOfRangeException.ThrowIfLessThan(position, -1);
MS\Internal\Documents\DocumentGrid.cs (3)
448ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 462ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 2693ArgumentOutOfRangeException.ThrowIfLessThan(pageNumber, row.FirstPage);
MS\Internal\Documents\PageCache.cs (2)
759ArgumentOutOfRangeException.ThrowIfLessThan(count, 1); 823ArgumentOutOfRangeException.ThrowIfLessThan(count, 1);
MS\Internal\Documents\RowCache.cs (5)
394ArgumentOutOfRangeException.ThrowIfLessThan(endOffset, startOffset); 511ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 649ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 804ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 834ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1);
System\Windows\Automation\Peers\RangeBaseAutomationPeer.cs (1)
67ArgumentOutOfRangeException.ThrowIfLessThan(val, owner.Minimum);
System\Windows\Data\BindingListCollectionView.cs (1)
109ArgumentOutOfRangeException.ThrowIfLessThan(position, -1);
System\Windows\Data\CollectionView.cs (1)
548ArgumentOutOfRangeException.ThrowIfLessThan(position, -1);
System\Windows\Data\ListCollectionView.cs (1)
202ArgumentOutOfRangeException.ThrowIfLessThan(position, -1);
System\Windows\Markup\XamlStream.cs (1)
187ArgumentOutOfRangeException.ThrowIfLessThan(position, ReadLength);
System.Collections (1)
System\Collections\Generic\Stack.cs (1)
182ArgumentOutOfRangeException.ThrowIfLessThan(capacity, _size);
System.Collections.NonGeneric (1)
System\Collections\Queue.cs (1)
55ArgumentOutOfRangeException.ThrowIfLessThan(growFactor, 1.0f);
System.Data.Common (1)
System\Data\SQLTypes\SQLDecimal.cs (1)
1165ArgumentOutOfRangeException.ThrowIfLessThan(destination.Length, 4, nameof(destination));
System.Diagnostics.Process (1)
System\Diagnostics\Process.cs (1)
1449ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout));
System.Formats.Tar (3)
System\Formats\Tar\GnuTarEntry.cs (2)
101ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimeOffset.UnixEpoch); 115ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimeOffset.UnixEpoch);
System\Formats\Tar\TarEntry.cs (1)
101ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimeOffset.UnixEpoch);
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
629ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout));
System.IO.Pipes (3)
System\IO\Pipes\NamedPipeClientStream.cs (3)
124ArgumentOutOfRangeException.ThrowIfLessThan(timeout, Timeout.Infinite); 185ArgumentOutOfRangeException.ThrowIfLessThan(timeout, Timeout.Infinite); 207ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout));
System.Linq (1)
System\Linq\Lookup.cs (1)
271ArgumentOutOfRangeException.ThrowIfLessThan(array.Length - arrayIndex, Count, nameof(arrayIndex));
System.Linq.Expressions (2)
System\Dynamic\Utils\ContractUtils.cs (1)
143ArgumentOutOfRangeException.ThrowIfLessThan(array.Count - offset, count, offsetName);
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
82ArgumentOutOfRangeException.ThrowIfLessThan(value, _size);
System.Net.HttpListener (3)
System\Net\WebSockets\HttpWebSocket.cs (3)
86ArgumentOutOfRangeException.ThrowIfLessThan(receiveBufferSize, MinReceiveBufferSize); 87ArgumentOutOfRangeException.ThrowIfLessThan(sendBufferSize, MinSendBufferSize); 92ArgumentOutOfRangeException.ThrowIfLessThan(keepAliveInterval, Timeout.InfiniteTimeSpan);
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.cs (1)
659ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout));
System.Net.Primitives (3)
src\libraries\Common\src\System\Net\SocketAddress.cs (2)
43ArgumentOutOfRangeException.ThrowIfLessThan(value, 0); 86ArgumentOutOfRangeException.ThrowIfLessThan(size, MinSize);
System\Net\DnsEndPoint.cs (1)
21ArgumentOutOfRangeException.ThrowIfLessThan(port, IPEndPoint.MinPort);
System.Net.Requests (7)
System\Net\HttpWebRequest.cs (3)
255ArgumentOutOfRangeException.ThrowIfLessThan(value, System.Threading.Timeout.Infinite); 688ArgumentOutOfRangeException.ThrowIfLessThan(value, 0); 701ArgumentOutOfRangeException.ThrowIfLessThan(value, -1);
System\Net\ServicePoint\ServicePoint.cs (3)
33ArgumentOutOfRangeException.ThrowIfLessThan(value, Timeout.Infinite); 45ArgumentOutOfRangeException.ThrowIfLessThan(value, Timeout.Infinite); 57ArgumentOutOfRangeException.ThrowIfLessThan(value, -1);
System\Net\ServicePoint\ServicePointManager.cs (1)
76ArgumentOutOfRangeException.ThrowIfLessThan(value, Timeout.Infinite);
System.Net.Sockets (6)
System\Net\Sockets\NetworkStream.cs (2)
344ArgumentOutOfRangeException.ThrowIfLessThan(timeout, -1); 364ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout));
System\Net\Sockets\Socket.cs (4)
541ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 560ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 950ArgumentOutOfRangeException.ThrowIfLessThan(timeout, -1); 2320ArgumentOutOfRangeException.ThrowIfLessThan(timeout, TimeSpan.Zero);
System.ObjectModel (1)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (1)
118ArgumentOutOfRangeException.ThrowIfLessThan(startingIndex, -1);
System.Private.CoreLib (38)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
1023ArgumentOutOfRangeException.ThrowIfLessThan(capacity, Count);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
370ArgumentOutOfRangeException.ThrowIfLessThan(capacity, _size);
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
194ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (3)
401ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 434ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 487ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
src\libraries\System.Private.CoreLib\src\System\Threading\ReaderWriterLockSlim.cs (2)
241ArgumentOutOfRangeException.ThrowIfLessThan(ltm, -1, nameof(timeout)); 253ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
src\libraries\System.Private.CoreLib\src\System\Threading\SpinWait.cs (1)
146ArgumentOutOfRangeException.ThrowIfLessThan(sleep1Threshold, -1);
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
367ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, Timeout.Infinite);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (6)
1416ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1431ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1446ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1462ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1480ArgumentOutOfRangeException.ThrowIfLessThan(tm, -1, nameof(timeout)); 1499ArgumentOutOfRangeException.ThrowIfLessThan(tm, -1, nameof(timeout));
src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (11)
496ArgumentOutOfRangeException.ThrowIfLessThan(tm, -1, parameter); 842ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 843ArgumentOutOfRangeException.ThrowIfLessThan(period, -1); 854ArgumentOutOfRangeException.ThrowIfLessThan(dueTm, -1, nameof(dueTime)); 858ArgumentOutOfRangeException.ThrowIfLessThan(periodTm, -1, nameof(period)); 878ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 879ArgumentOutOfRangeException.ThrowIfLessThan(period, -1); 910ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 911ArgumentOutOfRangeException.ThrowIfLessThan(period, -1); 927ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 928ArgumentOutOfRangeException.ThrowIfLessThan(period, -1);
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (4)
82ArgumentOutOfRangeException.ThrowIfLessThan(timeoutMilliseconds, -1, nameof(timeout)); 102ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 312ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 460ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
src\System\Array.CoreCLR.cs (2)
51ArgumentOutOfRangeException.ThrowIfLessThan(sourceIndex, srcLB); 56ArgumentOutOfRangeException.ThrowIfLessThan(destinationIndex, dstLB);
src\System\GC.CoreCLR.cs (4)
444ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 456ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 612ArgumentOutOfRangeException.ThrowIfLessThan(highMemoryPercent, 0); 615ArgumentOutOfRangeException.ThrowIfLessThan(lowMemoryPercent, 0);
src\System\Threading\Monitor.CoreCLR.cs (1)
155ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
System.Private.Uri (1)
System\UriBuilder.cs (1)
183ArgumentOutOfRangeException.ThrowIfLessThan(value, -1);
System.Private.Xml (1)
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (1)
424ArgumentOutOfRangeException.ThrowIfLessThan(maxValue, value);
System.Threading (7)
System\Threading\CountdownEvent.cs (3)
460ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 491ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 539ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
System\Threading\ReaderWriterLock.cs (4)
80ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 282ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 668ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 1111ArgumentOutOfRangeException.ThrowIfLessThan(timeoutMilliseconds, -1, nameof(timeout));
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.cs (1)
86ArgumentOutOfRangeException.ThrowIfLessThan(value, -1, nameof(MaxDegreeOfParallelism));
System.Transactions.Local (3)
System\Transactions\TransactionManager.cs (2)
376ArgumentOutOfRangeException.ThrowIfLessThan(value, TimeSpan.Zero); 535ArgumentOutOfRangeException.ThrowIfLessThan(transactionTimeout, TimeSpan.Zero);
System\Transactions\TransactionScope.cs (1)
1125ArgumentOutOfRangeException.ThrowIfLessThan(scopeTimeout, TimeSpan.Zero, paramName);
UIAutomationClient (1)
System\Windows\Automation\Text\TextRange.cs (1)
293ArgumentOutOfRangeException.ThrowIfLessThan(maxLength, -1);