QueryByAttribute Class
Updated: November 29, 2016
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Contains a query that is expressed as a set of attribute and value pairs.
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
| Name | Description | |
|---|---|---|
![]() | QueryByAttribute() | Initializes a new instance of the QueryByAttribute class. |
![]() | QueryByAttribute(String) | Initializes a new instance of the QueryByAttribute class. |
| Name | Description | |
|---|---|---|
![]() | Attributes | Gets the set of attributes selected in the query. |
![]() | ColumnSet | Gets or sets the column set. |
![]() | EntityName | Gets or sets the logical name of the entity to query. |
![]() | ExtensionData | Gets or sets the structure that contains extra data.(Inherited from QueryBase.) |
![]() | Orders | Gets the order in which the entity instances are returned from the query. |
![]() | PageInfo | Gets or sets the number of pages and the number of entity instances per page returned from the query. |
![]() | TopCount | Gets or sets the number of rows to be returned. |
![]() | Values | Gets the attribute values to look for when the query is executed. |
| Name | Description | |
|---|---|---|
![]() | AddAttributeValue(String, Object) | Adds an attribute value to the attributes collection. |
![]() | AddOrder(String, OrderType) | Adds an order to the orders collection. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
// Create query using QueryByAttribute. QueryByAttribute querybyattribute = new QueryByAttribute("account") { ColumnSet = new ColumnSet("name", "address1_city", "emailaddress1"), Attributes.AddRange("address1_city"), Values.AddRange("Redmond") };
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright

