Share via


DataServiceQuery<TElement>.IncludeTotalCount Method

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

Requests that the count of all entities in the entity set be returned inline with the query results.

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

Syntax

'Declaration
Public Function IncludeTotalCount As DataServiceQuery(Of TElement)
public DataServiceQuery<TElement> IncludeTotalCount()

Return Value

Type: System.Data.Services.Client.DataServiceQuery<TElement>
A new DataServiceQuery<TElement> object that has the inline count option set.

Remarks

Calling the IncludeTotalCount method is equivalent to including the $inlinecount query option in the query URI.

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.