Del via


FilterExpression Class

Definition

Specifies complex condition and logical filter expressions used for filtering the results of the query.

public ref class FilterExpression sealed : System::Runtime::Serialization::IExtensibleDataObject
[System.Runtime.Serialization.DataContract(Name="FilterExpression", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class FilterExpression : System.Runtime.Serialization.IExtensibleDataObject
[<System.Runtime.Serialization.DataContract(Name="FilterExpression", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")>]
type FilterExpression = class
    interface IExtensibleDataObject
Public NotInheritable Class FilterExpression
Implements IExtensibleDataObject
Inheritance
FilterExpression
Attributes
Implements

Constructors

FilterExpression()

Initializes a new instance of the FilterExpression class.

FilterExpression(LogicalOperator)

Initializes a new instance of the FilterExpression class, setting the FilterOperator property.

Properties

AnyAllFilterLinkEntity
Conditions

Gets the collection of condition expressions.

ExtensionData

Gets or sets the structure that contains extra data.

FilterHint

Gets or sets advanced filter hints such as union which can help with many or conditions on different tables.

FilterOperator

Gets or sets the logical AND/OR filter operator.

Filters

Gets a collection of condition and logical filter expressions that filter the results of the query.

IsQuickFindFilter

Gets or sets whether the expression is part of a quick find query.

Methods

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, ConditionOperator, Boolean, Object[])

Adds a ConditionExpression to the Conditions collection, setting the 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(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, Boolean, Object[])

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

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

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

AddFilter(FilterExpression)

Adds a FilterExpression to the Filters collection.

AddFilter(LogicalOperator)

Adds a FilterExpression to the Filters collection, setting the FilterOperator.

Applies to

See also