CosmosLinqExtensions.CountAsync<TSource> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the number of elements in a sequence.
public static System.Threading.Tasks.Task<Microsoft.Azure.Cosmos.Response<int>> CountAsync<TSource> (this System.Linq.IQueryable<TSource> source, System.Threading.CancellationToken cancellationToken = default);
static member CountAsync : System.Linq.IQueryable<'Source> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Cosmos.Response<int>>
<Extension()>
Public Function CountAsync(Of TSource) (source As IQueryable(Of TSource), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Integer))
Type Parameters
- TSource
The type of the elements of source.
Parameters
- source
- IQueryable<TSource>
The sequence that contains the elements to be counted.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The number of elements in the input sequence.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET