Class Rule
- Namespace
- Dynamicweb.Content.Items.Queries.Rules
- Assembly
- Dynamicweb.dll
Rule for smart filter
public sealed class Rule
- Inheritance
-
Rule
- Inherited Members
Constructors
Rule()
Initializes a new instance of an object.
public Rule()
Rule(RuleField, RuleOperator, string)
Initializes a new instance of an object.
public Rule(RuleField field, RuleOperator ruleOperator, string value)
Parameters
field
RuleFieldruleOperator
RuleOperatorvalue
string
Rule(RuleField, RuleOperator, string, string)
Initializes a new instance of an object.
public Rule(RuleField field, RuleOperator ruleOperator, string valueFrom, string valueTo)
Parameters
field
RuleFieldruleOperator
RuleOperatorvalueFrom
stringvalueTo
string
Properties
Field
Gets the constraint that corresponds to this rule.
public RuleField Field { get; set; }
Property Value
IsEmpty
Check is empty object
public bool IsEmpty { get; }
Property Value
IsRangeValue
Check is range value
public bool IsRangeValue { get; }
Property Value
Operator
Gets the constraint that corresponds to this rule.
public RuleOperator Operator { get; set; }
Property Value
Value
Gets or sets the value
public string Value { get; set; }
Property Value
ValueFrom
Gets or sets the from range value
public string ValueFrom { get; set; }
Property Value
ValueTo
Gets or sets the to range value
public string ValueTo { get; set; }