DomainClientResult.CreateQueryResult Method
[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.]
Creates a Query operation result.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Public Shared Function CreateQueryResult ( _
entities As IEnumerable(Of Entity), _
allEntities As IEnumerable(Of Entity), _
totalEntityCount As Integer, _
validationErrors As IEnumerable(Of ValidationResult) _
) As DomainClientResult
'Usage
Dim entities As IEnumerable(Of Entity)
Dim allEntities As IEnumerable(Of Entity)
Dim totalEntityCount As Integer
Dim validationErrors As IEnumerable(Of ValidationResult)
Dim returnValue As DomainClientResult
returnValue = DomainClientResult.CreateQueryResult(entities, _
allEntities, totalEntityCount, validationErrors)
public static DomainClientResult CreateQueryResult(
IEnumerable<Entity> entities,
IEnumerable<Entity> allEntities,
int totalEntityCount,
IEnumerable<ValidationResult> validationErrors
)
public:
static DomainClientResult^ CreateQueryResult(
IEnumerable<Entity^>^ entities,
IEnumerable<Entity^>^ allEntities,
int totalEntityCount,
IEnumerable<ValidationResult^>^ validationErrors
)
static member CreateQueryResult :
entities:IEnumerable<Entity> *
allEntities:IEnumerable<Entity> *
totalEntityCount:int *
validationErrors:IEnumerable<ValidationResult> -> DomainClientResult
public static function CreateQueryResult(
entities : IEnumerable<Entity>,
allEntities : IEnumerable<Entity>,
totalEntityCount : int,
validationErrors : IEnumerable<ValidationResult>
) : DomainClientResult
Parameters
- entities
Type: System.Collections.Generic.IEnumerable<Entity>
The top-level entities returned from the query.
- allEntities
Type: System.Collections.Generic.IEnumerable<Entity>
All entities returned from the query, including associated entities.
- totalEntityCount
Type: System.Int32
The total server count of entities.
- validationErrors
Type: System.Collections.Generic.IEnumerable<ValidationResult>
Collection of validation errors for the query.
Return Value
Type: System.ServiceModel.DomainServices.Client.DomainClientResult
The Query operation result.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | entities, allEntities, or validationErrors is nulla null reference (Nothing in Visual Basic). |