EntityCollection.TotalRecordCount Property

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Gets the total number of records in the collection.ReturnTotalRecordCount was true when the query was executed .

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

Syntax

[DataMemberAttribute]
public int TotalRecordCount { get; set; }
<DataMemberAttribute>
Public Property TotalRecordCount As Integer

Property Value

Type: System.Int32

Type: Int32
The total number of records in the collection.

Remarks

If ReturnTotalRecordCount was false when the query was executed, the value of this property will be -1.

See Also

ReturnTotalRecordCount
EntityCollection Class
Microsoft.Xrm.Sdk Namespace
Use the QueryExpression class

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright