Load

MapiMessage.Load method (1 of 4)

Loads message from file.

public static MapiMessage Load(string fileName)
Parameter Type Description
fileName String Source file pathString.

Exceptions

exception condition
ArgumentNullException File name should not be null or empty.
NotSupportedException Stream does not support reading.
FormatNotSupportedException Passed message format is not supported.

See Also


MapiMessage.Load method (2 of 4)

Loads message from stream.

public static MapiMessage Load(Stream stream)
Parameter Type Description
stream Stream Source streamStream.

Exceptions

exception condition
FormatNotSupportedException Passed message format is not supported.
ArgumentNullException Stream should not be null or empty.
NotSupportedException Stream does not support reading.

See Also


MapiMessage.Load method (3 of 4)

Loads message from stream with additional options.

public static MapiMessage Load(Stream stream, LoadOptions options)
Parameter Type Description
stream Stream Source streamStream.
options LoadOptions Additional options LoadOptions.

Exceptions

exception condition
FormatNotSupportedException Passed message format is not supported.
ArgumentNullException Stream should not be null or empty.
NotSupportedException Stream does not support reading.

See Also


MapiMessage.Load method (4 of 4)

Loads message from file with additional options.

public static MapiMessage Load(string fileName, LoadOptions options)
Parameter Type Description
fileName String Source file pathString.
options LoadOptions Additional options LoadOptions.

Exceptions

exception condition
ArgumentNullException File name should not be null or empty.
NotSupportedException Stream does not support reading.
FormatNotSupportedException Passed message format is not supported.

See Also