MapiMessage.FromMailMessage

FromMailMessage(string)

Creates an instance of MapiMessage from the MailMessage.

public static MapiMessage FromMailMessage(string fileName)
ParameterTypeDescription
fileNameStringThe file name of MailMessage.

Return Value

Returns a MapiMessage instance which is loaded from the MailMessage.

See Also


FromMailMessage(Stream)

Creates an instance of MapiMessage from the EML format data stream.

public static MapiMessage FromMailMessage(Stream stream)
ParameterTypeDescription
streamStreamThe stream of data that represents an EML file.

Return Value

Returns a MapiMessage instance which is loaded from the EML format data stream.

See Also


FromMailMessage(MailMessage)

Creates an instance of MapiMessage from the MailMessage.

public static MapiMessage FromMailMessage(MailMessage message)
ParameterTypeDescription
messageMailMessageThe MailMessage.

Return Value

Returns a MapiMessage instance which is loaded from the MailMessage.

See Also


FromMailMessage(MailMessage, MapiConversionOptions)

Creates an instance of MapiMessage from the MailMessage.

public static MapiMessage FromMailMessage(MailMessage message, MapiConversionOptions options)
ParameterTypeDescription
messageMailMessageThe MailMessage.
optionsMapiConversionOptionsMapiFromMailMessageOptions MapiConversionOptions

Return Value

MapiMessage that represents Outlook message.

See Also