SharpMimeTools Documented Class Library

SharpAttachment.Save Method 

[This is preliminary documentation and subject to change.]

Saves of the attachment to a file in the given path.

public FileInfo Save(
   string path,
   bool overwrite
);

Parameters

path
A String specifying the path on which to save the attachment.
overwrite
true if the destination file can be overwritten; otherwise, false.

Return Value

FileInfo of the saved file. null when it fails to save.

Remarks

If the file was already saved, the previous FileInfo is returned.
Once the file is successfully saved, the stream is closed and SavedFile property is updated.

See Also

SharpAttachment Class | anmar.SharpMimeTools Namespace