FilterExpression.AddCondition Method (String, String, ConditionOperator, Object[])

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Adds a condition to the filter expression setting the entity name, attribute name, condition operator, and value array.

Namespace:   Microsoft.Xrm.Sdk.Query
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

public void AddCondition(
	string entityName,
	string attributeName,
	ConditionOperator conditionOperator,
	params object[] values
)

Parameters

entityName
Type: System.String

Type: String. The name of the entity.

attributeName
Type: System.String

Type: String. The name of the attribute.

conditionOperator
Type: Microsoft.Xrm.Sdk.Query.ConditionOperator

Type: ConditionOperator. The enumeration type.

values
Type: System.Object[]

Type: Object[]. The array of values to add.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: