Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

EntityCollection.TotalRecordCount Property

Definition

Namespace:
Microsoft.Xrm.Sdk
Assembly:
Microsoft.Xrm.Sdk.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

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 the total number of records in the collection.ReturnTotalRecordCount was true when the query was executed .

public:
 property int TotalRecordCount { int get(); void set(int value); };
[System.Runtime.Serialization.DataMember]
public int TotalRecordCount { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.TotalRecordCount : int with get, set
Public Property TotalRecordCount As Integer

Property Value

The total number of records in the collection.

Attributes

Remarks

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

Applies to

See also