MessageObjectSave Method (Stream, MessageObjectSaveFormat)

Saves the current message object to the specified stream.

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

Parameters

stream
Type: System.IOStream
The stream to write to.
format
Type: Aspose.Email.Mapi.MsgMessageObjectSaveFormat
The format of the output data.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf stream is null.
ArgumentOutOfRangeExceptionIf format value is not valid.
See Also