Encodes specified text if it contains 8-bit chars, otherwise text won't be encoded.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public static string EncodeS( MIME_EncodedWordEncoding encoding, Encoding charset, bool split, string text )
Public Shared Function EncodeS ( encoding As MIME_EncodedWordEncoding, charset As Encoding, split As Boolean, text As String ) As String
public: static String^ EncodeS( MIME_EncodedWordEncoding encoding, Encoding^ charset, bool split, String^ text )
static member EncodeS : encoding : MIME_EncodedWordEncoding * charset : Encoding * split : bool * text : string -> string
Parameters
- encoding (MIME_EncodedWordEncoding)
- Encoding to use to encode text.
- charset (Encoding)
- Charset to use for encoding. If not sure UTF-8 is strongly recommended.
- split (Boolean)
- If true, words are splitted after 75 chars.
- text (String)
- Text to encode.
Return Value
String
Returns encoded text.
Returns encoded text.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Is raised when charset or text is null reference. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119