LumiSoft Net Help
ToFile Method (file, headerWordEncoder, headerParmetersCharset, headerReencode)
Namespaces ► LumiSoft.Net.MIME ► MIME_Entity ► ToFile(String, MIME_Encoding_EncodedWord, Encoding, Boolean)
Stores MIME entity to the specified file.
Declaration Syntax

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

    public void ToFile(
    	string file,
    	MIME_Encoding_EncodedWord headerWordEncoder,
    	Encoding headerParmetersCharset,
    	bool headerReencode
    )

    Public Sub ToFile (
    	file As String,
    	headerWordEncoder As MIME_Encoding_EncodedWord,
    	headerParmetersCharset As Encoding,
    	headerReencode As Boolean
    )

    public:
    void ToFile(
    	String^ file,
    	MIME_Encoding_EncodedWord^ headerWordEncoder,
    	Encoding^ headerParmetersCharset,
    	bool headerReencode
    )

    member ToFile :
            file : string *
            headerWordEncoder : MIME_Encoding_EncodedWord *
            headerParmetersCharset : Encoding *
            headerReencode : bool -> unit

Parameters

file (String)
  File name with path where to store MIME entity.

headerWordEncoder (MIME_Encoding_EncodedWord)
  Header 8-bit words ecnoder. Value null means that words are not encoded.

headerParmetersCharset (Encoding)
  Charset to use to encode 8-bit header parameters. Value null means parameters not encoded.

headerReencode (Boolean)
  If true always specified encoding is used for header. If false and header field value not modified, original encoding is kept.

Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Is raised when file is null.
ArgumentException | Is raised when any of the arguments has invalid value.

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