## StringComparisonField class

Represents the string search field.

```csharp
public sealed class StringComparisonField : ComparisonField
```

## Methods

| Name | Description |
| --- | --- |
| [Contains](../../aspose.email.tools.search/stringcomparisonfield/contains/#contains)(string) | Indicates that field in message must contain the specified value. |
| [Contains](../../aspose.email.tools.search/stringcomparisonfield/contains/#contains_1)(string, bool) | Indicates that field in message must contain the specified value. |
| [Empty](../../aspose.email.tools.search/stringcomparisonfield/empty/)() | Indicates that field in message must be empty. |
| [Equals](../../aspose.email.tools.search/stringcomparisonfield/equals/#equals)(string) | Indicates that field in message must be equal to the specified value. |
| [Equals](../../aspose.email.tools.search/stringcomparisonfield/equals/#equals_1)(string, bool) | Indicates that field in message must be equal to the specified value. |
| [NotContains](../../aspose.email.tools.search/stringcomparisonfield/notcontains/#notcontains)(string) | Indicates that field in message must not contain the specified value. |
| [NotContains](../../aspose.email.tools.search/stringcomparisonfield/notcontains/#notcontains_1)(string, bool) | Indicates that field in message must not contain the specified value. |
| [NotEmpty](../../aspose.email.tools.search/stringcomparisonfield/notempty/)() | Indicates that field in message must not be empty. |
| [NotEquals](../../aspose.email.tools.search/stringcomparisonfield/notequals/#notequals)(string) | Indicates that field in message must not be equal to the specified value. |
| [NotEquals](../../aspose.email.tools.search/stringcomparisonfield/notequals/#notequals_1)(string, bool) | Indicates that field in message must not be equal to the specified value. |
| [OrderBy](../../aspose.email.tools.search/comparisonfield/orderby/)(bool) | Sets value which indicates if client uses ascending or descending sorting on the Field. |

### See Also

* class [ComparisonField](../comparisonfield/)
* namespace [Aspose.Email.Tools.Search](../../aspose.email.tools.search/)
* assembly [Aspose.Email](../../)


