MessageObject

MessageObject constructor (1 of 2)

Initializes a new instance of the MessageObject class.

public MessageObject(Stream stream, MessageObjectLoadFormat loadFormat)
Parameter Type Description
stream Stream The stream to initialize this object from.
loadFormat MessageObjectLoadFormat The source format message object is stored with.

Exceptions

exception condition
ArgumentNullException If given stream is null.
ArgumentOutOfRangeException If specified loadFormat is not supported.

See Also


MessageObject constructor (2 of 2)

Initializes a new instance of the MessageObject class.

public MessageObject(string fileName, MessageObjectLoadFormat loadFormat)
Parameter Type Description
fileName String Name of the file to read from.
loadFormat MessageObjectLoadFormat The source format message object is stored with.

Exceptions

exception condition
ArgumentOutOfRangeException If specified loadFormat is not supported.

Remarks

In addition same set of exceptions could be thrown as for the FileMode) call.

See Also