ImapUtilsToQuotedString Method
Converts the specified string into the IMAP4 quoted string.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public static string ToQuotedString(
	string s


Type: SystemString
The string to be converted into the IMAP4 quoted string.

Return Value

Type: String
The IMAP4 quoted string.

This method escapes all quote and backslash characters and encloses the result in quotes. If s is a null reference (Nothing) in Visual Basic), empty quoted string ("") is returned.

The method can be used to build "search by text" expressions when using Search(Boolean, String, String) or BeginSearch(Boolean, String, String, AsyncCallback, Object) methods.

Note Note
If you need to search non-ASCII strings (non-English), use ToUtf8QuotedString(String) method instead. Also, charset parameter in Search(Boolean, String, String) method call must be "UTF-8".
Note Note
With Gmail, use ToLiteral(String) method instead.
See Also