CustomFilter Class
Represents a filter that specifies one or two conditions (operators and values) and whether the two conditions are joined by 'and' or 'or'.
public sealed class CustomFilter : Filter
Public NotInheritable Class CustomFilter
Inherits Filter
- Inheritance:
- System.ObjectCustomFilter
Properties
And
Gets or sets the value indicating whether the two conditions have an "and" relationship. true indicates "and", false indicates "or" and null indicates that second condition won't be applied.
Property Value
- System.Nullable<System.Boolean>
The value indicating whether the two conditions have an "and" relationship.
FilterType
Gets the Custom value.
public override FilterType FilterType { get; }
Public Overrides ReadOnly Property FilterType As FilterType
Property Value
The Custom value.
Overrides
Operator
Gets or sets the operator used by the (first) filter condition.
Property Value
The operator used by the (first) filter condition.
Operator2
Gets or sets the operator used by the second filter condition.
Property Value
The operator used by the second filter condition.
Value
Gets or sets the value used by the (first) filter condition.
The value's type must be supported in Value (null and types supported in SupportsType(Type)).
Property Value
- System.Object
The value used by the (first) filter condition.
Exceptions
- System.NotSupportedException
Value's type is not supported.
Value2
Gets or sets the value used by the second filter condition.
The value's type must be supported in Value (null and types supported in SupportsType(Type)).
Property Value
- System.Object
The value used by the second filter condition.
Exceptions
- System.NotSupportedException
Value's type is not supported.
Methods
ToString()
Returns a System.String that represents this CustomFilter instance.
Returns
- System.String
A System.String that represents this CustomFilter instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).