DataServiceQuery<TElement>.IncludeCount Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.