TableUtils.GetResultSize(ODataQueryOptions, ODataQuerySettings) Method

Definition

Gets the effective query result size meaning the max number of elements to include in a single query result based on the page size and top parameters in the querysettings.

public static int GetResultSize (System.Web.Http.OData.Query.ODataQueryOptions query, System.Web.Http.OData.Query.ODataQuerySettings settings);
static member GetResultSize : System.Web.Http.OData.Query.ODataQueryOptions * System.Web.Http.OData.Query.ODataQuerySettings -> int
Public Shared Function GetResultSize (query As ODataQueryOptions, settings As ODataQuerySettings) As Integer

Parameters

query
System.Web.Http.OData.Query.ODataQueryOptions
settings
System.Web.Http.OData.Query.ODataQuerySettings

Returns

System.Int32

The effective page size for the given query.

Applies to