Export (0) Print
Expand All

ParallelEnumerable.Repeat(Of TResult) Method

Generates a parallel sequence that contains one repeated value.

Namespace:  System.Linq
Assembly:  System.Core (in System.Core.dll)

'Declaration
Public Shared Function Repeat(Of TResult) ( _
	element As TResult, _
	count As Integer _
) As ParallelQuery(Of TResult)

Type Parameters

TResult

The type of the value to be repeated in the result sequence.

Parameters

element
Type: TResult

The value to be repeated.

count
Type: System.Int32

The number of times to repeat the value in the generated sequence.

Return Value

Type: System.Linq.ParallelQuery(Of TResult)
A sequence that contains a repeated value.

ExceptionCondition
ArgumentOutOfRangeException

count is less than 0.

.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