Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ParallelEnumerable.Repeat<TResult>(TResult, Int32) Method

Definition

Namespace:
System.Linq
Assemblies:
System.Core.dll, System.Linq.Parallel.dll
Assemblies:
netstandard.dll, System.Linq.Parallel.dll
Assembly:
System.Linq.Parallel.dll
Assembly:
System.Core.dll
Assembly:
netstandard.dll
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Generates a parallel sequence that contains one repeated value.

public:
generic <typename TResult>
 static System::Linq::ParallelQuery<TResult> ^ Repeat(TResult element, int count);
public static System.Linq.ParallelQuery<TResult> Repeat<TResult>(TResult element, int count);
static member Repeat : 'Result * int -> System.Linq.ParallelQuery<'Result>
Public 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
TResult

The value to be repeated.

count
Int32

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

Returns

ParallelQuery<TResult>

A sequence that contains a repeated value.

Exceptions

count is less than 0.

Applies to

See also


Feedback

Was this page helpful?