public static string ToUtf7QuotedString( string s )
Public Shared Function ToUtf7QuotedString ( s As String ) As String
This method converts the source string contents into UTF-7 Modified string and 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 refer international folder names when building an IMAP4 request to create/delete/rename or otherwise manage folder manually (i.e. using ExecuteCustomCommand(String, String) method).
|SelectFolder(String), CreateFolder(String), etc apply character escaping and UTF-7 Modified transformations automatically (unless Utf7EncodeFolderNames is false). The developer should not attempt to use method in this case. Even if Utf7EncodeFolderNames is false, quote and backslash characters in folder names are still automatically escaped, and the developer should use ToUtf7String(String) rather than to apply UTF-7 Modified.|