ParallelEnumerable.LongCount 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
병렬 시퀀스의 총 요소 수를 나타내는 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>
개수를 셀 요소가 들어 있는 시퀀스입니다.
반환
입력 시퀀스의 요소 수입니다.
예외
WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken) 통해 전달된 토큰으로 쿼리가 취소된 경우
source
가 null 참조(Visual Basic의 경우 Nothing)인 경우
원본의 요소 수가 Int32.MaxValue보다 큽습니다. 또는 쿼리를 확인하는 동안 하나 이상의 예외가 발생한 경우
계산된 결과가 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>
개수를 셀 요소가 들어 있는 시퀀스입니다.
반환
시퀀스에서 조건자 함수의 조건에 맞는 요소 수를 나타내는 숫자입니다.
예외
WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken) 통해 전달된 토큰으로 쿼리가 취소된 경우
source
또는 predicate
가 null 참조(Visual Basic의 경우 Nothing)인 경우
원본의 요소 수가 Int32.MaxValue보다 큽습니다. 또는 쿼리를 확인하는 동안 하나 이상의 예외가 발생한 경우
계산된 결과가 Int32.MaxValue보다 큽습니다.
추가 정보
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기