ImapUtilsToQuotedString Method |
Namespace: MailBee.ImapMail
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 |
---|
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 |
---|
With Gmail, use ToLiteral(String) method instead. |