Share via


DataServiceBehavior.AcceptCountRequests Property

Gets or sets whether requests with the $count path segment or the $inlinecount query options are accepted.

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Public Property AcceptCountRequests As Boolean 
    Get 
    Set
'Usage
Dim instance As DataServiceBehavior 
Dim value As Boolean 

value = instance.AcceptCountRequests

instance.AcceptCountRequests = value
public bool AcceptCountRequests { get; set; }
public:
property bool AcceptCountRequests {
    bool get ();
    void set (bool value);
}
member AcceptCountRequests : bool with get, set
function get AcceptCountRequests () : boolean 
function set AcceptCountRequests (value : boolean)

Property Value

Type: System.Boolean
True if count requests are supported; otherwise false.

See Also

Reference

DataServiceBehavior Class

System.Data.Services Namespace