Export (0) Print
Expand All

Partitioner.Create Method (Int64, Int64, Int64)

.NET Framework 4.6 and 4.5

Creates a partitioner that chunks the user-specified range.

Namespace:  System.Collections.Concurrent
Assemblies:   System.Collections.Concurrent (in System.Collections.Concurrent.dll)
  mscorlib (in mscorlib.dll)

public static OrderablePartitioner<Tuple<long, long>> Create(
	long fromInclusive,
	long toExclusive,
	long rangeSize
)

Parameters

fromInclusive
Type: System.Int64

The lower, inclusive bound of the range.

toExclusive
Type: System.Int64

The upper, exclusive bound of the range.

rangeSize
Type: System.Int64

The size of each subrange.

ExceptionCondition
ArgumentOutOfRangeException

The toExclusive argument is less than or equal to the fromInclusive argument.

-or-

The rangeSize argument is less than or equal to 0.

For more information and examples, see Custom Partitioners for PLINQ and TPL.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft