다음을 통해 공유


FilterExpression.AddCondition Method

Definition

Overloads

AddCondition(String, String, ConditionOperator, Boolean, Object)

Adds a ConditionExpression to the Conditions collection, setting the EntityName, AttributeName, Operator, CompareColumns, properties and and a single value in the
Values property.

AddCondition(String, String, ConditionOperator, Object[])

Adds a ConditionExpression to the Conditions collection, setting the EntityName, AttributeName, Operator, and Values properties.

AddCondition(String, ConditionOperator, Boolean, Object[])

Adds a ConditionExpression to the Conditions collection, setting the AttributeName, Operator, CompareColumns, and Values properties.

AddCondition(String, String, ConditionOperator, Boolean, Object[])

Adds a ConditionExpression to the Conditions collection, setting the EntityName, AttributeName, Operator, CompareColumns, and Values properties.

AddCondition(String, ConditionOperator, Object[])

Adds a ConditionExpression to the Conditions collection, setting the AttributeName, Operator, and Values properties.

AddCondition(ConditionExpression)

Adds a ConditionExpression to the Conditions collection.

AddCondition(String, ConditionOperator, Boolean, Object)

Adds a ConditionExpression to the Conditions collection, setting the AttributeName, Operator, CompareColumns properties and a single value in the Values property.

AddCondition(String, String, ConditionOperator, Boolean, Object)

Adds a ConditionExpression to the Conditions collection, setting the EntityName, AttributeName, Operator, CompareColumns, properties and and a single value in the
Values property.

public:
 void AddCondition(System::String ^ entityName, System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator, bool compareColumns, System::Object ^ value);
public void AddCondition (string entityName, string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator, bool compareColumns, object value);
member this.AddCondition : string * string * Microsoft.Xrm.Sdk.Query.ConditionOperator * bool * obj -> unit
Public Sub AddCondition (entityName As String, attributeName As String, conditionOperator As ConditionOperator, compareColumns As Boolean, value As Object)

Parameters

entityName
String

The logical name of the table that contains the column.

attributeName
String

The logical name of the column.

conditionOperator
ConditionOperator

The type of comparison to apply.

compareColumns
Boolean

Whether the value represents the logical name of a column to compare.

value
Object

The value to add.

Applies to

AddCondition(String, String, ConditionOperator, Object[])

Adds a ConditionExpression to the Conditions collection, setting the EntityName, AttributeName, Operator, and Values properties.

public:
 void AddCondition(System::String ^ entityName, System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator, ... cli::array <System::Object ^> ^ values);
public void AddCondition (string entityName, string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator, params object[] values);
member this.AddCondition : string * string * Microsoft.Xrm.Sdk.Query.ConditionOperator * obj[] -> unit
Public Sub AddCondition (entityName As String, attributeName As String, conditionOperator As ConditionOperator, ParamArray values As Object())

Parameters

entityName
String

The logical name of the table.

attributeName
String

The logical name of the column.

conditionOperator
ConditionOperator

The type of comparison to apply.

values
Object[]

The array of values to add.

Applies to

AddCondition(String, ConditionOperator, Boolean, Object[])

Adds a ConditionExpression to the Conditions collection, setting the AttributeName, Operator, CompareColumns, and Values properties.

public:
 void AddCondition(System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator, bool compareColumns, cli::array <System::Object ^> ^ values);
public void AddCondition (string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator, bool compareColumns, object[] values);
member this.AddCondition : string * Microsoft.Xrm.Sdk.Query.ConditionOperator * bool * obj[] -> unit
Public Sub AddCondition (attributeName As String, conditionOperator As ConditionOperator, compareColumns As Boolean, values As Object())

Parameters

attributeName
String

The logical name of the column.

conditionOperator
ConditionOperator

The type of comparison to apply.

compareColumns
Boolean

Whether the value parameter represents the logical names of columns to compare.

values
Object[]

The array of values to compare, or the logical names of columns to compare when the compareColumns parameter is set to true.

Applies to

AddCondition(String, String, ConditionOperator, Boolean, Object[])

Adds a ConditionExpression to the Conditions collection, setting the EntityName, AttributeName, Operator, CompareColumns, and Values properties.

public:
 void AddCondition(System::String ^ entityName, System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator, bool compareColumns, cli::array <System::Object ^> ^ values);
public void AddCondition (string entityName, string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator, bool compareColumns, object[] values);
member this.AddCondition : string * string * Microsoft.Xrm.Sdk.Query.ConditionOperator * bool * obj[] -> unit
Public Sub AddCondition (entityName As String, attributeName As String, conditionOperator As ConditionOperator, compareColumns As Boolean, values As Object())

Parameters

entityName
String

The logical name of the table.

attributeName
String

The logical name of the column.

conditionOperator
ConditionOperator

The type of comparison to apply.

compareColumns
Boolean

Whether the values represents the logical names of columns to compare.

values
Object[]

The array of values to add, or the logical names of columns to compare when the compareColumns parameter is set to true.

Applies to

AddCondition(String, ConditionOperator, Object[])

Adds a ConditionExpression to the Conditions collection, setting the AttributeName, Operator, and Values properties.

public:
 void AddCondition(System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator, ... cli::array <System::Object ^> ^ values);
public void AddCondition (string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator, params object[] values);
member this.AddCondition : string * Microsoft.Xrm.Sdk.Query.ConditionOperator * obj[] -> unit
Public Sub AddCondition (attributeName As String, conditionOperator As ConditionOperator, ParamArray values As Object())

Parameters

attributeName
String

The logical name of the column.

conditionOperator
ConditionOperator

The type of comparison to apply.

values
Object[]

The array of values to add.

Applies to

AddCondition(ConditionExpression)

Adds a ConditionExpression to the Conditions collection.

public:
 void AddCondition(Microsoft::Xrm::Sdk::Query::ConditionExpression ^ condition);
public void AddCondition (Microsoft.Xrm.Sdk.Query.ConditionExpression condition);
member this.AddCondition : Microsoft.Xrm.Sdk.Query.ConditionExpression -> unit
Public Sub AddCondition (condition As ConditionExpression)

Parameters

condition
ConditionExpression

Specifies the condition expression to be added.

Applies to

AddCondition(String, ConditionOperator, Boolean, Object)

Adds a ConditionExpression to the Conditions collection, setting the AttributeName, Operator, CompareColumns properties and a single value in the Values property.

public:
 void AddCondition(System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator, bool compareColumns, System::Object ^ value);
public void AddCondition (string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator, bool compareColumns, object value);
member this.AddCondition : string * Microsoft.Xrm.Sdk.Query.ConditionOperator * bool * obj -> unit
Public Sub AddCondition (attributeName As String, conditionOperator As ConditionOperator, compareColumns As Boolean, value As Object)

Parameters

attributeName
String

The logical name of the column.

conditionOperator
ConditionOperator

The type of comparison to apply.

compareColumns
Boolean

Whether the value parameter represents the logical name of a column to compare.

value
Object

The value to compare or the logical name of a column to compare when the compareColumns parameter is set to true.

Applies to