C# Class LumiSoft.Net.Mime.Attachment

Mostra file Open project: jeske/StepsDB-alpha Class Usage Examples

Public Methods

Method Description
Attachment ( string fileName ) : System

Creates attechment from file.

Attachment ( string fileName, Stream strm ) : System

Creates attachment from stream with specified file name

Attachment ( string fileName, byte fileData ) : System

Creates attachment from data with specified file name.

Method Details

Attachment() public method

Creates attechment from file.
public Attachment ( string fileName ) : System
fileName string File name which to attach. Eg. c:\aaa.eml .
return System

Attachment() public method

Creates attachment from stream with specified file name
public Attachment ( string fileName, Stream strm ) : System
fileName string File name. Eg. aaa.eml .
strm Stream Stream which data to attach. NOTE: Data will be taken from stream current position.
return System

Attachment() public method

Creates attachment from data with specified file name.
public Attachment ( string fileName, byte fileData ) : System
fileName string File name. Eg. aaa.eml .
fileData byte Data which to attach.
return System