[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)
Visual Basic (Declaration)
Public Shared Function Repeat(Of TResult) ( _
element As TResult, _
count As Integer _
) As ParallelQuery(Of TResult)
Dim element As TResult
Dim count As Integer
Dim returnValue As ParallelQuery(Of TResult)
returnValue = ParallelEnumerable.Repeat(element, _
count)
public static ParallelQuery<TResult> Repeat<TResult>(
TResult element,
int count
)
public:
generic<typename TResult>
static ParallelQuery<TResult>^ Repeat(
TResult element,
int count
)
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.
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.
.NET Framework
Supported in: 4
.NET Framework Client Profile
Supported in: 4
Reference