MapiMessage.LoadFromTnef

LoadFromTnef(Stream)

Loads message from Transport Neutral Encapsulation Format (TNEF) data structure

public static MapiMessage LoadFromTnef(Stream stream)
ParameterTypeDescription
streamStreamA stream representing message data in TNEF format

Return Value

A read MapiMessage

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

See Also


LoadFromTnef(string)

Loads message from Transport Neutral Encapsulation Format (TNEF) data structure

public static MapiMessage LoadFromTnef(string fileName)
ParameterTypeDescription
fileNameStringName of file containing message data in TNEF format

Return Value

A read MapiMessage

Exceptions

exceptioncondition
ArgumentExceptionfileName is null or empty

See Also