IEWSClientFetchMessage Method (String, IEnumerablePropertyDescriptor)

Fetches the message from server

Namespace:  Aspose.Email.Clients.Exchange.WebService
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.11
Syntax
MailMessage FetchMessage(
	string messageUri,
	IEnumerable<PropertyDescriptor> extendedProperties
)

Parameters

messageUri
Type: SystemString
The URI of the message
extendedProperties
Type: System.Collections.GenericIEnumerablePropertyDescriptor
An enumeration of extended properties

Return Value

Type: MailMessage
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