ConditionExpression Class

 

Applies To: Dynamics CRM 2015

Contains a condition expression used to filter the results of the query.

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

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Sdk.Query.ConditionExpression

Syntax

[DataContractAttribute(Name = "ConditionExpression", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class ConditionExpression : IExtensibleDataObject
[DataContractAttribute(Name = "ConditionExpression", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
public ref class ConditionExpression sealed : IExtensibleDataObject
[<Sealed>]
[<DataContractAttribute(Name = "ConditionExpression", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")>]
type ConditionExpression = 
    class
        interface IExtensibleDataObject
    end
<DataContractAttribute(Name := "ConditionExpression", Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts")>
Public NotInheritable Class ConditionExpression
    Implements IExtensibleDataObject

Constructors

Name Description
System_CAPS_pubmethod ConditionExpression()

Initializes a new instance of the ConditionExpression class.

System_CAPS_pubmethod ConditionExpression(String, ConditionOperator)

Initializes a new instance of the ConditionExpression class setting the attribute name and condition operator.

System_CAPS_pubmethod ConditionExpression(String, ConditionOperator, ICollection)

Initializes a new instance of the ConditionExpression class setting the attribute name, condition operator and a collection of values.

System_CAPS_pubmethod ConditionExpression(String, ConditionOperator, Object)

Initializes a new instance of the ConditionExpression class setting the attribute name, condition operator and value object.

System_CAPS_pubmethod ConditionExpression(String, ConditionOperator, Object[])

Initializes a new instance of the ConditionExpression class setting the attribute name, condition operator and an array of value objects.

System_CAPS_pubmethod ConditionExpression(String, String, ConditionOperator)

Initializes a new instance of the ConditionExpression class.

System_CAPS_pubmethod ConditionExpression(String, String, ConditionOperator, Object)

Initializes a new instance of the ConditionExpression class.

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

Initializes a new instance of the ConditionExpression class.

Properties

Name Description
System_CAPS_pubproperty AttributeName

Gets or sets the logical name of the attribute in the condition expression.

System_CAPS_pubproperty EntityName

Gets or sets the entity name for the condition.

System_CAPS_pubproperty ExtensionData

Gets or sets the structure that contains extra data.

System_CAPS_pubproperty Operator

Gets or sets the condition operator.

System_CAPS_pubproperty Values

Gets or sets the values for the attribute.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

For more information, see Use the ConditionExpression class.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Conditions
Microsoft.Xrm.Sdk.Query Namespace
Build queries with QueryExpression

Return to top

© 2016 Microsoft. All rights reserved. Copyright