MapiMessage.Load

Load(string)

Loads a message from a file.

public static MapiMessage Load(string fileName)
ParameterTypeDescription
fileNameStringThe path of the file.

Exceptions

exceptioncondition
ArgumentNullExceptionfileName is null or empty.
FormatNotSupportedExceptionThe data is not in a supported message format.
NotSupportedExceptionThe stream does not support reading.

See Also


Load(Stream)

Loads a message from a stream.

public static MapiMessage Load(Stream stream)
ParameterTypeDescription
streamStreamThe stream to read.

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null.
FormatNotSupportedExceptionThe data is not in a supported message format.
NotSupportedExceptionThe stream does not support reading.

See Also


Load(Stream, LoadOptions)

Loads a message from a stream with the specified options.

public static MapiMessage Load(Stream stream, LoadOptions options)
ParameterTypeDescription
streamStreamThe stream to read.
optionsLoadOptionsThe options of loading.

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null.
FormatNotSupportedExceptionThe data is not in a supported message format.
NotSupportedExceptionThe stream does not support reading.

See Also


Load(string, LoadOptions)

Loads a message from a file with the specified options.

public static MapiMessage Load(string fileName, LoadOptions options)
ParameterTypeDescription
fileNameStringThe path of the file.
optionsLoadOptionsThe options of loading.

Exceptions

exceptioncondition
ArgumentNullExceptionfileName is null or empty.
FormatNotSupportedExceptionThe data is not in a supported message format.
NotSupportedExceptionThe stream does not support reading.

See Also