Save

MessageObject.Save method (1 of 2)

Saves the current message object to the specified file.

public void Save(string fileName, MessageObjectSaveFormat format)
Parameter Type Description
fileName String Name of the file.
format MessageObjectSaveFormat The format of the output data.

Exceptions

exception condition
ArgumentOutOfRangeException If format value is not valid.

Remarks

In addition same set of exceptions could be thrown as for the String) call.

See Also


MessageObject.Save method (2 of 2)

Saves the current message object to the specified stream.

public void Save(Stream stream, MessageObjectSaveFormat format)
Parameter Type Description
stream Stream The stream to write to.
format MessageObjectSaveFormat The format of the output data.

Exceptions

exception condition
ArgumentNullException If stream is null.
ArgumentOutOfRangeException If format value is not valid.

See Also