Поделиться через


FilterExpression Class

 

Applies To: Dynamics CRM 2015

Specifies complex condition and logical filter expressions used for filtering 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.FilterExpression

Syntax

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

Constructors

Name Description
System_CAPS_pubmethod FilterExpression()

Initializes a new instance of the FilterExpression class.

System_CAPS_pubmethod FilterExpression(LogicalOperator)

Initializes a new instance of the FilterExpression class.

Properties

Name Description
System_CAPS_pubproperty Conditions

Gets condition expressions that include attributes, condition operators, and attribute values.

System_CAPS_pubproperty ExtensionData

Gets or sets the structure that contains extra data.

System_CAPS_pubproperty FilterOperator

Gets or sets the logical AND/OR filter operator.

System_CAPS_pubproperty Filters

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

System_CAPS_pubproperty IsQuickFindFilter

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

Methods

Name Description
System_CAPS_pubmethod AddCondition(ConditionExpression)

Adds a condition to the filter expression setting the condition expression.

System_CAPS_pubmethod AddCondition(String, ConditionOperator, Object[])

Adds a condition to the filter expression setting the attribute name, condition operator, and value array.

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

Adds a condition to the filter expression setting the entity name, attribute name, condition operator, and value array.

System_CAPS_pubmethod AddFilter(FilterExpression)

Adds a child filter to the filter expression.

System_CAPS_pubmethod AddFilter(LogicalOperator)

Adds a child filter to the filter expression setting the logical operator.

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

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

Criteria
LinkCriteria
Microsoft.Xrm.Sdk.Query Namespace
Use the FilterExpression class
Sample: Query connection roles by entity type code (early bound)
Sample: Clean up history for a queue (early bound)
Sample: Retrieve an opportunity (early bound)
Sample: Retrieve records from an intersect table

Return to top

© 2016 Microsoft. All rights reserved. Copyright