ParallelEnumerable.Count(Of TSource) Method (ParallelQuery(Of TSource), Func(Of TSource, Boolean))
Returns a number that represents how many elements in the specified parallel sequence satisfy a condition.
Assembly: System.Core (in System.Core.dll)
<ExtensionAttribute> Public Shared Function Count(Of TSource) ( source As ParallelQuery(Of TSource), predicate As Func(Of TSource, Boolean) ) As Integer
A sequence that contains elements to be counted.
Return ValueType: System.Int32
A number that represents how many elements in the sequence satisfy the condition in the predicate function.
The type of the elements of source.
The query was canceled with the token passed in through WithCancellation.
source or predicate is a null reference (Nothing in Visual Basic).
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1