QueryExpression.TopCount Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the number of rows to be returned.
public:
property Nullable<int> TopCount { Nullable<int> get(); void set(Nullable<int> value); };
[System.Runtime.Serialization.DataMember(EmitDefaultValue=false, Order=50)]
public int? TopCount { get; set; }
[<System.Runtime.Serialization.DataMember(EmitDefaultValue=false, Order=50)>]
member this.TopCount : Nullable<int> with get, set
Public Property TopCount As Nullable(Of Integer)
Property Value
The number of rows to be returned.
- Attributes
Remarks
When specified, this limits the number rows returned in a query result set to the specified number of rows.
A query can contain either PageInfo or TopCount property values. If both are specified, an error will be thrown.