MapiMessage.Load
Load(string)
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
Load(Stream)
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
Load(Stream, LoadOptions)
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
Load(string, LoadOptions)
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