MapiTask.Save

Save(Stream, TaskSaveFormat)

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

public void Save(Stream stream, TaskSaveFormat saveFormat)
ParameterTypeDescription
streamStreamThe stream to write to.
saveFormatTaskSaveFormatThe format.

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null.
NotSupportedExceptionstream does not support writing.
NotSupportedExceptionsaveFormat is not Msg.

See Also


Save(string, TaskSaveFormat)

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

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

Exceptions

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

See Also


Save(string)

Saves this MapiTask 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 MapiTask 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