QueryResult<T> Constructor (IEnumerable<T>, Int32)
[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.]
Initializes a new instance of the QueryResult<T> class with the specified collection of result items and total count.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Public Sub New ( _
results As IEnumerable(Of T), _
totalCount As Integer _
)
'Usage
Dim results As IEnumerable(Of T)
Dim totalCount As Integer
Dim instance As New QueryResult(results, _
totalCount)
public QueryResult(
IEnumerable<T> results,
int totalCount
)
public:
QueryResult(
IEnumerable<T>^ results,
int totalCount
)
new :
results:IEnumerable<'T> *
totalCount:int -> QueryResult
public function QueryResult(
results : IEnumerable<T>,
totalCount : int
)
Parameters
- results
Type: System.Collections.Generic.IEnumerable<T>
The query results.
- totalCount
Type: System.Int32
The total number of rows based on the input query, but without any paging applied to it.