Load(string)
Loads a message from a file.
public static MapiMessage Load(string fileName)
| Parameter | Type | Description |
|---|
| fileName | String | The path of the file. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | fileName is null or empty. |
| FormatNotSupportedException | The data is not in a supported message format. |
| NotSupportedException | The stream does not support reading. |
See Also
Load(Stream)
Loads a message from a stream.
public static MapiMessage Load(Stream stream)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream to read. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| FormatNotSupportedException | The data is not in a supported message format. |
| NotSupportedException | The 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)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream to read. |
| options | LoadOptions | The options of loading. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| FormatNotSupportedException | The data is not in a supported message format. |
| NotSupportedException | The 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)
| Parameter | Type | Description |
|---|
| fileName | String | The path of the file. |
| options | LoadOptions | The options of loading. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | fileName is null or empty. |
| FormatNotSupportedException | The data is not in a supported message format. |
| NotSupportedException | The stream does not support reading. |
See Also