IEWSClient.FetchMessage
Contents
[
Hide
]FetchMessage(string)
Fetches the message.
public MailMessage FetchMessage(string messageUri)
| Parameter | Type | Description | 
|---|---|---|
| messageUri | String | The message URI. | 
Return Value
Returns a message
See Also
- class MailMessage
- interface IEWSClient
- namespace Aspose.Email.Clients.Exchange.WebService
- assembly Aspose.Email
FetchMessage(string, IEnumerable<PropertyDescriptor>)
Fetches the message from server
public MailMessage FetchMessage(string messageUri, 
    IEnumerable<PropertyDescriptor> extendedProperties)
| Parameter | Type | Description | 
|---|---|---|
| messageUri | String | The URI of the message | 
| extendedProperties | IEnumerable`1 | An 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
| exception | condition | 
|---|---|
| AsposeArgumentException | messageUri is nullorempty | 
| ExchangeException | Message can not be fetched | 
See Also
- class MailMessage
- class PropertyDescriptor
- interface IEWSClient
- namespace Aspose.Email.Clients.Exchange.WebService
- assembly Aspose.Email