IEWSClient.FetchMessage

FetchMessage(string)

Fetches the message.

public MailMessage FetchMessage(string messageUri)
ParameterTypeDescription
messageUriStringThe message URI.

Return Value

Returns a message

See Also


FetchMessage(string, IEnumerable<PropertyDescriptor>)

Fetches the message from server

public MailMessage FetchMessage(string messageUri, 
    IEnumerable<PropertyDescriptor> extendedProperties)
ParameterTypeDescription
messageUriStringThe URI of the message
extendedPropertiesIEnumerable`1An enumeration of extended properties

Return Value

MailMessage that represents e-mail message, if custom properties have been found and set you can access them using Headers collection.

Exceptions

exceptioncondition
AsposeArgumentExceptionmessageUri is null or empty
ExchangeExceptionMessage can not be fetched

See Also