ParallelEnumerable.ElementAt<TSource> 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 인덱스의 요소를 병렬 시퀀스로 반환합니다.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static TSource ElementAt(System::Linq::ParallelQuery<TSource> ^ source, int index);
public static TSource ElementAt<TSource>(this System.Linq.ParallelQuery<TSource> source, int index);
static member ElementAt : System.Linq.ParallelQuery<'Source> * int -> 'Source
<Extension()>
Public Function ElementAt(Of TSource) (source As ParallelQuery(Of TSource), index As Integer) As TSource
형식 매개 변수
- TSource
의 요소 형식입니다 source.
매개 변수
- source
- ParallelQuery<TSource>
요소를 반환할 시퀀스입니다.
- index
- Int32
검색할 요소의 인덱스(0부터 시작하는 인덱스)입니다.
반품
소스 시퀀스의 지정된 위치에 있는 요소입니다.
예외
전달된 토큰으로 쿼리가 취소되었습니다 WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).
source null 참조(Visual Basic 없음)입니다.
index 가 0보다 작거나 에 있는 source요소 수보다 크거나 같은 경우
쿼리를 평가하는 동안 하나 이상의 예외가 발생했습니다.