This documentation is archived and is not being maintained.

QueryExpression Class (Sdk Assembly)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Retrieves instances of a specific entity type by using a complex query.

The QueryExpression class inherits from QueryBase. It exposes the following members.

QueryExpressionInitializes a new instance of the QueryExpression class.

Instance MethodDescription
AddLinkAdds the specified link to the query expression.
AddOrderAdds the specified order expression to the query expression.

Instance PropertyDescription
CriteriaGets or sets the complex condition and logical filter expressions that filter the results of the query.
DistinctGets or sets a value that indicates whether the results of the query contain duplicate entity instances.
LinkEntitiesGets the links between multiple entity types.
OrdersGets the order in which the entity instances are returned from the query.
PageInfoGets or sets the number of pages and the number of entity instances per page returned from the query.


For more information, see the CrmService.QueryExpression class.


Namespace: Microsoft.Crm.Sdk.Query

Assembly: Microsoft.Crm.Sdk.dll

See Also


© 2010 Microsoft Corporation. All rights reserved.