Table of Contents

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 RuleField
ruleOperator RuleOperator
value 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 RuleField
ruleOperator RuleOperator
valueFrom string
valueTo string

Properties

Field

Gets the constraint that corresponds to this rule.

public RuleField Field { get; set; }

Property Value

RuleField

IsEmpty

Check is empty object

public bool IsEmpty { get; }

Property Value

bool

IsRangeValue

Check is range value

public bool IsRangeValue { get; }

Property Value

bool

Operator

Gets the constraint that corresponds to this rule.

public RuleOperator Operator { get; set; }

Property Value

RuleOperator

Value

Gets or sets the value

public string Value { get; set; }

Property Value

string

ValueFrom

Gets or sets the from range value

public string ValueFrom { get; set; }

Property Value

string

ValueTo

Gets or sets the to range value

public string ValueTo { get; set; }

Property Value

string
To top