MessageObject.Save

Save(string, MessageObjectSaveFormat)

Saves the current message object to the specified file.

public void Save(string fileName, MessageObjectSaveFormat format)
ParameterTypeDescription
fileNameStringName of the file.
formatMessageObjectSaveFormatThe 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 String) call.

See Also


Save(Stream, MessageObjectSaveFormat)

Saves the current message object to the specified stream.

public void Save(Stream stream, MessageObjectSaveFormat format)
ParameterTypeDescription
streamStreamThe stream to write to.
formatMessageObjectSaveFormatThe format of the output data.

Exceptions

exceptioncondition
ArgumentNullExceptionIf stream is null.
ArgumentOutOfRangeExceptionIf format value is not valid.

See Also