ParallelEnumerable.ElementAt<TSource> 메서드

정의

병렬 시퀀스에서 지정된 인덱스의 요소를 반환합니다.

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부터 시작하는 인덱스입니다.

반환

TSource

소스 시퀀스에서 지정된 위치의 요소입니다.

예외

source가 null 참조(Visual Basic의 경우 Nothing)인 경우

index가 0보다 작거나 source의 요소 수보다 크거나 같은 경우

쿼리를 확인하는 동안 하나 이상의 예외가 발생했습니다.

적용 대상

추가 정보