ParallelEnumerable.Repeat(Of TResult) Method (TResult, Int32)
.NET Framework (current version)
Generates a parallel sequence that contains one repeated value.
Assembly: System.Core (in System.Core.dll)
Public Shared Function Repeat(Of TResult) ( element As TResult, count As Integer ) As ParallelQuery(Of TResult)
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.
Type Parameters
- TResult
The type of the value to be repeated in the result sequence.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | count is less than 0. |
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: