QueryExpression.TopCount Property

 

Applies To: Dynamics CRM 2015

Gets or sets the number of rows to be returned.

Namespace:   Microsoft.Xrm.Sdk.Query
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

[DataMemberAttribute(Order = 50, EmitDefaultValue = false)]
public Nullable<int> TopCount { get; set; }
public:
[DataMemberAttribute(Order = 50, EmitDefaultValue = false)]
property Nullable<int> TopCount {
    Nullable<int> get();
    void set(Nullable<int> value);
}
[<DataMemberAttribute(Order = 50, EmitDefaultValue = false)>]
member TopCount : Nullable<int> with get, set
<DataMemberAttribute(Order := 50, EmitDefaultValue := False)>
Public Property TopCount As Nullable(Of Integer)

Property Value

Type: System.Nullable<Int32>

Type: Int32
The number of rows to be returned.

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.

See Also

QueryExpression Class
Microsoft.Xrm.Sdk.Query Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright