MessageObject Constructor (String, MessageObjectLoadFormat)

Initializes a new instance of the MessageObject class.

Namespace:  Aspose.Email.Mapi.Msg
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public MessageObject(
	string fileName,
	MessageObjectLoadFormat loadFormat
)

Parameters

fileName
Type: SystemString
Name of the file to read from.
loadFormat
Type: Aspose.Email.Mapi.MsgMessageObjectLoadFormat
The source format message object is stored with.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionIf specified loadFormat is not supported.
Remarks
In addition same set of exceptions could be thrown as for the Open(String, FileMode) call.
See Also