Share via


InlineCountQueryOption.GetEntityCount Method (IQueryable)

 

Gets the number of entities that satify the given query if the response should include an inline count, or null otherwise.

Namespace:   System.Web.Http.OData.Query
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

public Nullable<long> GetEntityCount(
    IQueryable query
)
public:
Nullable<long long> GetEntityCount(
    IQueryable^ query
)
member GetEntityCount : 
        query:IQueryable -> Nullable<int64>
Public Function GetEntityCount (
    query As IQueryable
) As Nullable(Of Long)

Parameters

Return Value

Type: System.Nullable<Int64>

The number of entities that satisfy the specified query if the response should include an inline count, or null otherwise.

See Also

InlineCountQueryOption Class
System.Web.Http.OData.Query Namespace

Return to top