---
title: "MailQueryBuilder.Text"
url: "https://reference.aspose.com/email/net/aspose.email.tools.search/mailquerybuilder/text/"
product: "Aspose.Email for .NET API Reference"
description: "MailQueryBuilder property. Gets the field that allows to find the messages that contain the specified string in the headers subject from to cc and body of the message"
---

## MailQueryBuilder.Text property

Gets the field that allows to find the messages that contain the specified string in the headers (subject, from, to, cc) and body of the message.

```csharp
public StringComparisonField Text { get; }
```

### Property Value

The [`DateComparisonField`](../../datecomparisonfield/) that represents text header or body search fields.

### See Also

* class [StringComparisonField](../../stringcomparisonfield/)
* class [MailQueryBuilder](../)
* namespace [Aspose.Email.Tools.Search](../../mailquerybuilder/)
* assembly [Aspose.Email](../../../)


