AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IFilterClause.AddStatement Method (Field, Operator, String)

Adds a `String` constraint to this clause.

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

#### Parameters

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

#### Remarks

The field must be searchable.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | The field is not searchable.

#### See Also

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