LumiSoft Net Help
SetDataFromFile Method (file, transferEncoding)
Namespaces ► LumiSoft.Net.MIME ► MIME_b_SinglepartBase ► SetDataFromFile(String, String)
Sets body data from the specified file.
Declaration Syntax

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

    public void SetDataFromFile(
    	string file,
    	string transferEncoding
    )

    Public Sub SetDataFromFile (
    	file As String,
    	transferEncoding As String
    )

    public:
    void SetDataFromFile(
    	String^ file,
    	String^ transferEncoding
    )

    member SetDataFromFile :
            file : string *
            transferEncoding : string -> unit

Parameters

file (String)
  File name with optional path.

transferEncoding (String)
  Specifies content-transfer-encoding to use to encode data.

Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Is raised when file is null reference.
InvalidOperationException | Is raised when this method is accessed and this body is not bounded to any entity.

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