Freigeben über


ConditionExpression Constructors

Definition

Overloads

ConditionExpression()

Initializes a new instance of the ConditionExpression class.

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

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator, CompareColumns, and Values properties. The values parameter must contain names of other columns when the compareColumns parameter is set to true.

ConditionExpression(String, String, ConditionOperator, Boolean, Object)

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator and CompareColumns properties, and a single value in the Values property. The value parameter must be the logical name of another column when the compareColumns parameter is set to true.

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

Initializes a new instance of the ConditionExpression class setting the EntityName, AttributeName, Operator and Values properties.

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

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator, CompareColumns and Values properties. The values parameter must contain logical names of other columns when the compareColumns parameter is set to true.

ConditionExpression(String, ConditionOperator, Boolean, Object)

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator and CompareColumns properties, and a single value in the Values property. The value parameter must be the logical name of another column when the compareColumns parameter is set to true.

ConditionExpression(String, String, ConditionOperator, Object)

Initializes a new instance of the ConditionExpression class setting the EntityName, AttributeName, Operator properties, and a single value in the Values property.

ConditionExpression(String, ConditionOperator, Object[])

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator and Values properties.

ConditionExpression(String, ConditionOperator, Object)

Initializes a new instance of the ConditionExpression class setting the AttributeName and Operator properties, and a single value in the Values property.

ConditionExpression(String, ConditionOperator, ICollection)

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator and Values properties.

ConditionExpression(String, ConditionOperator)

Initializes a new instance of the ConditionExpression class setting the AttributeName and Operator properties.

ConditionExpression(String, String, ConditionOperator)

Initializes a new instance of the ConditionExpression class setting the EntityName, AttributeName, and Operator properties.

ConditionExpression()

Initializes a new instance of the ConditionExpression class.

public:
 ConditionExpression();
public ConditionExpression ();
Public Sub New ()

Applies to

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

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator, CompareColumns, and Values properties. The values parameter must contain names of other columns when the compareColumns parameter is set to true.

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

Parameters

entityName
String

The logical name of the table in the condition expression.

attributeName
String

The logical name of the column in the condition expression.

conditionOperator
ConditionOperator

The condition operator.

compareColumns
Boolean

Whether the query should compare column values.

values
Object[]

The value to compare or the name of the column to compare when CompareColumns is set to true.

Applies to

ConditionExpression(String, String, ConditionOperator, Boolean, Object)

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator and CompareColumns properties, and a single value in the Values property. The value parameter must be the logical name of another column when the compareColumns parameter is set to true.

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

Parameters

entityName
String

The logical name of the table in the condition expression.

attributeName
String

The logical name of the column in the condition expression.

conditionOperator
ConditionOperator

The condition operator.

compareColumns
Boolean

Whether the query should compare column values.

value
Object

The column value, or the logical name of the column to compare when CompareColumns is set to true.

Applies to

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

Initializes a new instance of the ConditionExpression class setting the EntityName, AttributeName, Operator and Values properties.

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

Parameters

entityName
String

The logical name of the table in the condition expression.

attributeName
String

The logical name of the column in the condition expression.

conditionOperator
ConditionOperator

The condition operator.

values
Object[]

The array of attribute values.

Applies to

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

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator, CompareColumns and Values properties. The values parameter must contain logical names of other columns when the compareColumns parameter is set to true.

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

Parameters

attributeName
String

The logical name of the column in the condition expression.

conditionOperator
ConditionOperator

The condition operator.

compareColumns
Boolean

Whether the values represents a column comparison.

values
Object[]

The array of attribute values.

Applies to

ConditionExpression(String, ConditionOperator, Boolean, Object)

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator and CompareColumns properties, and a single value in the Values property. The value parameter must be the logical name of another column when the compareColumns parameter is set to true.

public:
 ConditionExpression(System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator, bool compareColumns, System::Object ^ value);
public ConditionExpression (string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator, bool compareColumns, object value);
new Microsoft.Xrm.Sdk.Query.ConditionExpression : string * Microsoft.Xrm.Sdk.Query.ConditionOperator * bool * obj -> Microsoft.Xrm.Sdk.Query.ConditionExpression
Public Sub New (attributeName As String, conditionOperator As ConditionOperator, compareColumns As Boolean, value As Object)

Parameters

attributeName
String

The logical name of the column in the condition expression.

conditionOperator
ConditionOperator

The condition operator.

compareColumns
Boolean

Whether the query should compare column values.

value
Object

The column value or the name of the column to compare when CompareColumns is set to true.

Applies to

ConditionExpression(String, String, ConditionOperator, Object)

Initializes a new instance of the ConditionExpression class setting the EntityName, AttributeName, Operator properties, and a single value in the Values property.

public:
 ConditionExpression(System::String ^ entityName, System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator, System::Object ^ value);
public ConditionExpression (string entityName, string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator, object value);
new Microsoft.Xrm.Sdk.Query.ConditionExpression : string * string * Microsoft.Xrm.Sdk.Query.ConditionOperator * obj -> Microsoft.Xrm.Sdk.Query.ConditionExpression
Public Sub New (entityName As String, attributeName As String, conditionOperator As ConditionOperator, value As Object)

Parameters

entityName
String

The logical name of the table in the condition expression.

attributeName
String

The logical name of the column in the condition expression.

conditionOperator
ConditionOperator

The condition operator.

value
Object

The column value.

Applies to

ConditionExpression(String, ConditionOperator, Object[])

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator and Values properties.

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

Parameters

attributeName
String

The logical name of the column in the condition expression.

conditionOperator
ConditionOperator

The condition operator.

values
Object[]

The array of attribute values.

Applies to

ConditionExpression(String, ConditionOperator, Object)

Initializes a new instance of the ConditionExpression class setting the AttributeName and Operator properties, and a single value in the Values property.

public:
 ConditionExpression(System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator, System::Object ^ value);
public ConditionExpression (string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator, object value);
new Microsoft.Xrm.Sdk.Query.ConditionExpression : string * Microsoft.Xrm.Sdk.Query.ConditionOperator * obj -> Microsoft.Xrm.Sdk.Query.ConditionExpression
Public Sub New (attributeName As String, conditionOperator As ConditionOperator, value As Object)

Parameters

attributeName
String

The logical name of the column in the condition expression.

conditionOperator
ConditionOperator

The condition operator.

value
Object

The column value.

Applies to

ConditionExpression(String, ConditionOperator, ICollection)

Initializes a new instance of the ConditionExpression class setting the AttributeName, Operator and Values properties.

public:
 ConditionExpression(System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator, System::Collections::ICollection ^ values);
public ConditionExpression (string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator, System.Collections.ICollection values);
new Microsoft.Xrm.Sdk.Query.ConditionExpression : string * Microsoft.Xrm.Sdk.Query.ConditionOperator * System.Collections.ICollection -> Microsoft.Xrm.Sdk.Query.ConditionExpression
Public Sub New (attributeName As String, conditionOperator As ConditionOperator, values As ICollection)

Parameters

attributeName
String

The logical name of the column in the condition expression.

conditionOperator
ConditionOperator

The condition operator.

values
ICollection

The collection of attribute values.

Applies to

ConditionExpression(String, ConditionOperator)

Initializes a new instance of the ConditionExpression class setting the AttributeName and Operator properties.

public:
 ConditionExpression(System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator);
public ConditionExpression (string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator);
new Microsoft.Xrm.Sdk.Query.ConditionExpression : string * Microsoft.Xrm.Sdk.Query.ConditionOperator -> Microsoft.Xrm.Sdk.Query.ConditionExpression
Public Sub New (attributeName As String, conditionOperator As ConditionOperator)

Parameters

attributeName
String

The logical name of the column in the condition expression.

conditionOperator
ConditionOperator

The condition operator.

Applies to

ConditionExpression(String, String, ConditionOperator)

Initializes a new instance of the ConditionExpression class setting the EntityName, AttributeName, and Operator properties.

public:
 ConditionExpression(System::String ^ entityName, System::String ^ attributeName, Microsoft::Xrm::Sdk::Query::ConditionOperator conditionOperator);
public ConditionExpression (string entityName, string attributeName, Microsoft.Xrm.Sdk.Query.ConditionOperator conditionOperator);
new Microsoft.Xrm.Sdk.Query.ConditionExpression : string * string * Microsoft.Xrm.Sdk.Query.ConditionOperator -> Microsoft.Xrm.Sdk.Query.ConditionExpression
Public Sub New (entityName As String, attributeName As String, conditionOperator As ConditionOperator)

Parameters

entityName
String

The logical name of the table in the condition expression.

attributeName
String

The logical name of the column in the condition expression.

conditionOperator
ConditionOperator

The condition operator.

Applies to