Attachment |
public MimeEntity Add( string fileName, byte[] data )
Exception | Condition |
---|---|
ArgumentNullException | fileName is null. -or- data is null. |
ArgumentException | The specified file path is empty. |
Adds the data as an attachment, using the specified file name for deducing the mime-type by extension and for setting the Content-Location.