FilterExpression.AddCondition Method (String, String, ConditionOperator, Object[])
Applies To: Dynamics CRM 2015
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)
Syntax
public void AddCondition(
string entityName,
string attributeName,
ConditionOperator conditionOperator,
params object[] values
)
public:
void AddCondition(
String^ entityName,
String^ attributeName,
ConditionOperator conditionOperator,
... array<Object^>^ values
)
member AddCondition :
entityName:string *
attributeName:string *
conditionOperator:ConditionOperator *
[<ParamArrayAttribute>] values:Object[] -> unit
Public Sub AddCondition (
entityName As String,
attributeName As String,
conditionOperator As ConditionOperator,
ParamArray values As Object()
)
Parameters
entityName
Type: System.StringType: String. The name of the entity.
attributeName
Type: System.StringType: String. The name of the attribute.
conditionOperator
Type: Microsoft.Xrm.Sdk.Query.ConditionOperatorType: ConditionOperator. The enumeration type.
values
Type: System.Object[]Type: Object[]. The array of values to add.
See Also
AddCondition Overload
FilterExpression Class
Microsoft.Xrm.Sdk.Query Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright