QueryOperationResponse.TotalCount Property

Gets or sets the server result set count value from a query, if the query has requested the value.

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

Syntax

'Declaration
Public Overridable ReadOnly Property TotalCount As Long 
    Get
'Usage
Dim instance As QueryOperationResponse 
Dim value As Long 

value = instance.TotalCount
public virtual long TotalCount { get; }
public:
virtual property long long TotalCount {
    long long get ();
}
abstract TotalCount : int64 
override TotalCount : int64
function get TotalCount () : long

Property Value

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

Exceptions

Exception Condition
InvalidOperationException

Thrown when the count tag is not found in the response stream.

Remarks

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

See Also

Reference

QueryOperationResponse Class

System.Data.Services.Client Namespace