MapiNote.Save

Save(Stream, NoteSaveFormat)

Saves the note to a stream in the specified format. Only MSG is supported.

public void Save(Stream stream, NoteSaveFormat saveFormat)
ParameterTypeDescription
streamStreamThe stream to write to.
saveFormatNoteSaveFormatThe format.

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null.
NotSupportedExceptionstream does not support writing.
NotSupportedExceptionThe specified format is not supported.

See Also


Save(string, NoteSaveFormat)

Saves the note to a file in the specified format. Only MSG is supported.

public void Save(string filePath, NoteSaveFormat saveFormat)
ParameterTypeDescription
filePathStringThe path of the file to write.
saveFormatNoteSaveFormatThe format.

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty.
NotSupportedExceptionsaveFormat is not supported.

See Also


Save(string)

Saves this MapiNote to the given file.

public void Save(string filePath)
ParameterTypeDescription
filePathStringA file name.

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty.

See Also


Save(Stream)

Saves this MapiNote to the given stream.

public void Save(Stream stream)
ParameterTypeDescription
streamStreamA stream to save to.

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null.
NotSupportedExceptionstream does not support writing.

See Also