Share via


DataServiceQuery<TElement>.IncludeCount Method

Definition

Overloads

IncludeCount()

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

IncludeCount(Boolean)

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

IncludeCount()

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

public virtual Microsoft.OData.Client.DataServiceQuery<TElement> IncludeCount ();
abstract member IncludeCount : unit -> Microsoft.OData.Client.DataServiceQuery<'Element>
override this.IncludeCount : unit -> Microsoft.OData.Client.DataServiceQuery<'Element>
Public Overridable Function IncludeCount () As DataServiceQuery(Of TElement)

Returns

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

Applies to

IncludeCount(Boolean)

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

public virtual Microsoft.OData.Client.DataServiceQuery<TElement> IncludeCount (bool countQuery);
abstract member IncludeCount : bool -> Microsoft.OData.Client.DataServiceQuery<'Element>
override this.IncludeCount : bool -> Microsoft.OData.Client.DataServiceQuery<'Element>
Public Overridable Function IncludeCount (countQuery As Boolean) As DataServiceQuery(Of TElement)

Parameters

countQuery
Boolean

Whether to include count.

Returns

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

Applies to