MessageObjectSave Method (String, MessageObjectSaveFormat)

Saves the current message object to the specified file.

Namespace:  Aspose.Email.Mapi.Msg
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public void Save(
	string fileName,
	MessageObjectSaveFormat format
)

Parameters

fileName
Type: SystemString
Name of the file.
format
Type: Aspose.Email.Mapi.MsgMessageObjectSaveFormat
The format of the output data.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionIf format value is not valid.
Remarks
In addition same set of exceptions could be thrown as for the OpenWrite(String) call.
See Also