QueryOperationResponse<T>.TotalCount Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

The server result set count value from a query, if the query has requested the value.

Namespace:   System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

public override long TotalCount { get; }

Property Value

Type: System.Int64

The return value can be either zero or a positive value equal to the number of entities in the set on the server.

InvalidOperationException is thrown when the count was not part of the original request; that is, if the count tag is not found in the response stream.

.NET Framework
Available since 3.5
Available since 4.0
Return to top