ParallelEnumerable Methods


.NET Framework Class Library
ParallelEnumerable..::.Repeat<(Of <(TResult>)>) Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Generates a parallel sequence that contains one repeated value.

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

Visual Basic (Declaration)
Public Shared Function Repeat(Of TResult) ( _
    element As TResult, _
    count As Integer _
) As ParallelQuery(Of TResult)
Visual Basic (Usage)
Dim element As TResult
Dim count As Integer
Dim returnValue As ParallelQuery(Of TResult)

returnValue = ParallelEnumerable.Repeat(element, _
    count)
C#
public static ParallelQuery<TResult> Repeat<TResult>(
    TResult element,
    int count
)
Visual C++
public:
generic<typename TResult>
static ParallelQuery<TResult>^ Repeat(
    TResult element, 
    int count
)
F#
static member Repeat : 
        element:'TResult * 
        count:int -> ParallelQuery<'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.
Exceptions

ExceptionCondition
ArgumentOutOfRangeException

count is less than 0.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4
See Also

Reference

Page view tracker