Represents the value of the $count query option and exposes a way to retrieve the number of entities that satisfy a query.
Namespace:   System.Web.OData.Query
Assembly:  System.Web.OData (in System.Web.OData.dll)
Inheritance Hierarchy
System.Object
  System.Web.OData.Query.CountQueryOption
Syntax
public class CountQueryOption
public ref class CountQueryOption 
type CountQueryOption = class end
Public Class CountQueryOption
Constructors
| Name | Description | |
|---|---|---|
| .jpeg) | CountQueryOption(String, ODataQueryContext, ODataQueryOptionParser) | Initializes a new instance of the CountQueryOption class. | 
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | Context | Gets the given ODataQueryContext. | 
| .jpeg) | RawValue | Gets the raw $count value. | 
| .jpeg) | Validator | Gets or sets the $count query validator. | 
| .jpeg) | Value | Gets the value of the $count in a parsed form. | 
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Equals(Object) | (Inherited from Object.) | 
| .jpeg) | Finalize() | (Inherited from Object.) | 
| .jpeg) | GetEntityCount(IQueryable) | Gets the number of entities that satify the given query if the response should include a count query option, or null otherwise. | 
| .jpeg) | GetHashCode() | (Inherited from Object.) | 
| .jpeg) | GetType() | (Inherited from Object.) | 
| .jpeg) | MemberwiseClone() | (Inherited from Object.) | 
| .jpeg) | ToString() | (Inherited from Object.) | 
| .jpeg) | Validate(ODataValidationSettings) | Validate the count query based on the given validationSettings. It throws an ODataException if validation failed. | 
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
System.Web.OData.Query Namespace
Return to top