InlineCountQueryOption.GetEntityCount Method
Gets the number of entities that satisfies 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
'Declaration
Public Function GetEntityCount ( _
query As IQueryable _
) As Nullable(Of Long)
'Usage
Dim instance As InlineCountQueryOption
Dim query As IQueryable
Dim returnValue As Nullable(Of Long)
returnValue = instance.GetEntityCount(query)
public Nullable<long> GetEntityCount(
IQueryable query
)
public:
Nullable<long long> GetEntityCount(
IQueryable^ query
)
member GetEntityCount :
query:IQueryable -> Nullable<int64>
public function GetEntityCount(
query : IQueryable
) : Nullable<long>
Parameters
- query
Type: System.Linq.IQueryable
The query to compute the count for.
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.