MessageObject.MessageObject

MessageObject(Stream, MessageObjectLoadFormat)

Initializes a new instance of the MessageObject class.

public MessageObject(Stream stream, MessageObjectLoadFormat loadFormat)
ParameterTypeDescription
streamStreamThe stream to initialize this object from.
loadFormatMessageObjectLoadFormatThe source format message object is stored with.

Exceptions

exceptioncondition
ArgumentNullExceptionIf given stream is null.
ArgumentOutOfRangeExceptionIf specified loadFormat is not supported.

See Also


MessageObject(string, MessageObjectLoadFormat)

Initializes a new instance of the MessageObject class.

public MessageObject(string fileName, MessageObjectLoadFormat loadFormat)
ParameterTypeDescription
fileNameStringName of the file to read from.
loadFormatMessageObjectLoadFormatThe 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 FileMode) call.

See Also