LumiSoft Net Help
ImapStringToByte Method (charset, utf8StringSupported, value)
Namespaces ► LumiSoft.Net.IMAP ► IMAP_Utils ► ImapStringToByte(Encoding, Boolean, String)
Converts IMAP string to byte[].
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public static byte[] ImapStringToByte(
    	Encoding charset,
    	bool utf8StringSupported,
    	string value
    )

    Public Shared Function ImapStringToByte (
    	charset As Encoding,
    	utf8StringSupported As Boolean,
    	value As String
    ) As Byte()

    public:
    static array<unsigned char>^ ImapStringToByte(
    	Encoding^ charset,
    	bool utf8StringSupported,
    	String^ value
    )

    static member ImapStringToByte :
            charset : Encoding *
            utf8StringSupported : bool *
            value : string -> byte[]

Parameters

charset (Encoding)
  Charset to use for string encodings.

utf8StringSupported (Boolean)
  Specifies if RFC 5738 IMAP UTF-8 string is supported.

value (String)
  String value.

Return Value
array<Byte>[]()[][]
Returns IMAP string as byte[].
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Is raised when charset is null reference.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119