Plumtree EDK (Enterprise Web Development Kit) 5.4.0

IFilterClause.AddStatement Method (Field, Operator, String)

Adds a String constraint to this clause.

void AddStatement(
   Field field,
   Operator op,
   string value
);

Parameters

field
Field to search. Field must return String values, e.g. PlumtreeField.NAME. Adding a field of the wrong type may cause an exception on the search server.
op
constraint operator, e.g. Operator.Equals or Operator.Contains
value
String value to evaluate

Remarks

The field must be searchable.

Exceptions

Exception Type Condition
ArgumentException if field is not searchable

See Also

IFilterClause Interface | Plumtree.Remote.PRC.Search Namespace | IFilterClause.AddStatement Overload List