ParallelEnumerable.LongCount 메서드

정의

병렬 시퀀스의 총 요소 수를 나타내는 Int64를 반환합니다.

오버로드

LongCount<TSource>(ParallelQuery<TSource>)

병렬 시퀀스의 총 요소 수를 나타내는 Int64를 반환합니다.

LongCount<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

병렬 시퀀스에서 특정 조건에 맞는 요소 수를 나타내는 Int64를 반환합니다.

LongCount<TSource>(ParallelQuery<TSource>)

Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs

병렬 시퀀스의 총 요소 수를 나타내는 Int64를 반환합니다.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static long LongCount(System::Linq::ParallelQuery<TSource> ^ source);
public static long LongCount<TSource> (this System.Linq.ParallelQuery<TSource> source);
static member LongCount : System.Linq.ParallelQuery<'Source> -> int64
<Extension()>
Public Function LongCount(Of TSource) (source As ParallelQuery(Of TSource)) As Long

형식 매개 변수

TSource

source 요소의 형식입니다.

매개 변수

source
ParallelQuery<TSource>

개수를 셀 요소가 들어 있는 시퀀스입니다.

반환

입력 시퀀스의 요소 수입니다.

예외

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

원본의 요소 수가 Int32.MaxValue보다 큽습니다. 또는 쿼리를 확인하는 동안 하나 이상의 예외가 발생한 경우

추가 정보

적용 대상

LongCount<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs

병렬 시퀀스에서 특정 조건에 맞는 요소 수를 나타내는 Int64를 반환합니다.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static long LongCount(System::Linq::ParallelQuery<TSource> ^ source, Func<TSource, bool> ^ predicate);
public static long LongCount<TSource> (this System.Linq.ParallelQuery<TSource> source, Func<TSource,bool> predicate);
static member LongCount : System.Linq.ParallelQuery<'Source> * Func<'Source, bool> -> int64
<Extension()>
Public Function LongCount(Of TSource) (source As ParallelQuery(Of TSource), predicate As Func(Of TSource, Boolean)) As Long

형식 매개 변수

TSource

source 요소의 형식입니다.

매개 변수

source
ParallelQuery<TSource>

개수를 셀 요소가 들어 있는 시퀀스입니다.

predicate
Func<TSource,Boolean>

각 요소를 조건에 대해 테스트하는 함수입니다.

반환

시퀀스에서 조건자 함수의 조건에 맞는 요소 수를 나타내는 숫자입니다.

예외

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

원본의 요소 수가 Int32.MaxValue보다 큽습니다. 또는 쿼리를 확인하는 동안 하나 이상의 예외가 발생한 경우

추가 정보

적용 대상