OpenPop.NET POP3 Library Documentation

MessagePart.Save(FileInfo) Method

Save this MessagePart's contents to a file.
There are no methods to reload the file.

public void Save(
   FileInfo file
);

Parameters

file
The File location to save the MessagePart to. Existent files will be overwritten.

Exceptions

Exception Type Condition
ArgumentNullException If file is a null reference
Other exceptions relevant to using a FileStream might be thrown as well

See Also

MessagePart Class | OpenPop.Mime Namespace | MessagePart.Save Overload List