Share via


DataServiceQuery<TElement>.IncludeTotalCount Method

Definition

Overloads

IncludeTotalCount()
Obsolete.

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

IncludeTotalCount(Boolean)
Obsolete.

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

IncludeTotalCount()

Caution

Please use IncludeCount()

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

[System.Obsolete("Please use IncludeCount()")]
public virtual Microsoft.OData.Client.DataServiceQuery<TElement> IncludeTotalCount ();
[<System.Obsolete("Please use IncludeCount()")>]
abstract member IncludeTotalCount : unit -> Microsoft.OData.Client.DataServiceQuery<'Element>
override this.IncludeTotalCount : unit -> Microsoft.OData.Client.DataServiceQuery<'Element>
Public Overridable Function IncludeTotalCount () As DataServiceQuery(Of TElement)

Returns

A new DataServiceQuery<TElement> object that has the inline count option set.

Attributes

Applies to

IncludeTotalCount(Boolean)

Caution

Please use IncludeCount(bool countQuery)

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

[System.Obsolete("Please use IncludeCount(bool countQuery)")]
public virtual Microsoft.OData.Client.DataServiceQuery<TElement> IncludeTotalCount (bool countQuery);
[<System.Obsolete("Please use IncludeCount(bool countQuery)")>]
abstract member IncludeTotalCount : bool -> Microsoft.OData.Client.DataServiceQuery<'Element>
override this.IncludeTotalCount : bool -> Microsoft.OData.Client.DataServiceQuery<'Element>
Public Overridable Function IncludeTotalCount (countQuery As Boolean) As DataServiceQuery(Of TElement)

Parameters

countQuery
Boolean

Whether to include total count.

Returns

A new DataServiceQuery<TElement> object that has the inline count option set.

Attributes

Applies to