QueryResult.TotalCount Property
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Gets or sets the total number of rows for the original query without any paging applied to it.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
<DataMemberAttribute(EmitDefaultValue := False)> _
Public Property TotalCount As Integer
Get
Set
'Usage
Dim instance As QueryResult
Dim value As Integer
value = instance.TotalCount
instance.TotalCount = value
[DataMemberAttribute(EmitDefaultValue = false)]
public int TotalCount { get; set; }
[DataMemberAttribute(EmitDefaultValue = false)]
public:
property int TotalCount {
int get ();
void set (int value);
}
[<DataMemberAttribute(EmitDefaultValue = false)>]
member TotalCount : int with get, set
function get TotalCount () : int
function set TotalCount (value : int)
Property Value
Type: System.Int32
The total number of rows for the original query without any paging applied to it.
Remarks
If the value is -1, the server did not support total counts.