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 | |
---|---|---|
FilterExpression() | Initializes a new instance of the FilterExpression class. |
|
FilterExpression(LogicalOperator) | Initializes a new instance of the FilterExpression class. |
Properties
Name | Description | |
---|---|---|
Conditions | Gets condition expressions that include attributes, condition operators, and attribute values. |
|
ExtensionData | Gets or sets the structure that contains extra data. |
|
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
Name | Description | |
---|---|---|
AddCondition(ConditionExpression) | Adds a condition to the filter expression setting the condition expression. |
|
AddCondition(String, ConditionOperator, Object[]) | Adds a condition to the filter expression setting the attribute name, condition operator, and value array. |
|
AddCondition(String, String, ConditionOperator, Object[]) | Adds a condition to the filter expression setting the entity name, attribute name, condition operator, and value array. |
|
AddFilter(FilterExpression) | Adds a child filter to the filter expression. |
|
AddFilter(LogicalOperator) | Adds a child filter to the filter expression setting the logical operator. |
|
Equals(Object) | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
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