Share via


ODataHttpRequestMessageExtensions.GetInlineCount Method (HttpRequestMessage)

 

Note: This API is now obsolete.

Gets the inline count for the OData response. Returns null if no count should be sent back to the client.

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

Syntax

[ObsoleteAttribute("This method is obsolete; use the ODataProperties().TotalCount property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
public static Nullable<long> GetInlineCount(
    this HttpRequestMessage request
)
public:
[ExtensionAttribute]
[ObsoleteAttribute("This method is obsolete; use the ODataProperties().TotalCount property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
static Nullable<long long> GetInlineCount(
    HttpRequestMessage^ request
)
[<ObsoleteAttribute("This method is obsolete; use the ODataProperties().TotalCount property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>]
static member GetInlineCount : 
        request:HttpRequestMessage -> Nullable<int64>
<ExtensionAttribute>
<ObsoleteAttribute("This method is obsolete; use the ODataProperties().TotalCount property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>
Public Shared Function GetInlineCount (
    request As HttpRequestMessage
) As Nullable(Of Long)

Parameters

Return Value

Type: System.Nullable<Int64>

The inline count to send back to the client or null if no count should be sent back to the client.

See Also

ODataHttpRequestMessageExtensions Class
System.Net.Http Namespace

Return to top