This documentation is archived and is not being maintained.

QueryByAttribute Class (CrmService)

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 specifying a set of attribute and value pairs.

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

QueryByAttributeInitializes a new instance of the QueryByAttribute class.

Instance PropertyDescription
AttributesGets or sets the set of attributes selected in the query.
OrdersGets or sets 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.
ValuesGets or sets the attribute values to look for when the query is executed.


The query returns entity instances that match all the attribute values specified. To return the attributes that contain blanks, specify null values in the Values property. For an example, see Values.


Web Service: CrmService

See Also



© 2010 Microsoft Corporation. All rights reserved.