Freigeben über


QueryOperationResponse.TotalCount Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Overridable ReadOnly Property TotalCount As Long
public virtual long TotalCount { get; }

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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.