Class OperatorTerm
Represents an operator term that defines a comparison operation and the types it applies to.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.TemplateQuery
Assembly: Umbraco.Core.dll
Syntax
public class OperatorTerm
Constructors
View SourceOperatorTerm()
Initializes a new instance of the OperatorTerm class with default values.
Declaration
public OperatorTerm()
OperatorTerm(string, Operator, IEnumerable<string>)
Initializes a new instance of the OperatorTerm class with specified values.
Declaration
public OperatorTerm(string name, Operator @operator, IEnumerable<string> appliesTo)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The display name of the operator. |
| Operator | operator | The operator enumeration value. |
| IEnumerable<string> | appliesTo | The collection of property types this operator applies to. |
Properties
View SourceAppliesTo
Gets or sets the collection of property types this operator applies to.
Declaration
public IEnumerable<string> AppliesTo { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
Name
Gets or sets the display name of the operator.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Operator
Gets or sets the operator enumeration value.
Declaration
public Operator Operator { get; set; }
Property Value
| Type | Description |
|---|---|
| Operator |