MapiTask.Save

Save(Stream, TaskSaveFormat)

Saves this MapiTask to the given stream using specified format.

public void Save(Stream stream, TaskSaveFormat saveFormat)
ParameterTypeDescription
streamStreamA stream to save to.
saveFormatTaskSaveFormatA save format.

Exceptions

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

See Also


Save(string, TaskSaveFormat)

Saves this MapiTask into file using specified format.

public void Save(string filePath, TaskSaveFormat saveFormat)
ParameterTypeDescription
filePathStringA file name.
saveFormatTaskSaveFormatA save format.

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty.
NotSupportedExceptionsome save option is not supported

See Also