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

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

Parameters

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

Return Value

Type: String
The IMAP4 quoted string.
Remarks

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