ParallelEnumerable.Repeat<TResult>(TResult, Int32) 메서드

정의

반복되는 단일 값이 들어 있는 병렬 시퀀스를 생성합니다.

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)

형식 매개 변수

TResult

결과 시퀀스에서 반복할 값의 형식입니다.

매개 변수

element
TResult

반복할 값입니다.

count
Int32

생성된 시퀀스에서 값을 반복할 횟수입니다.

반환

ParallelQuery<TResult>

반복되는 단일 값이 들어 있는 시퀀스를 생성합니다.

예외

count 가 0보다 작습니다.

적용 대상

추가 정보