FetchMessageAsync
ImapClient.FetchMessageAsync method (1 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(IConnection connection, int sequenceNumber)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
sequenceNumber | Int32 | The sequence number of message |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ImapClient.FetchMessageAsync method (2 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(IConnection connection, int sequenceNumber,
bool ignoreAttachment)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
sequenceNumber | Int32 | The sequence number of message |
ignoreAttachment | Boolean | A value that defines whether the attachments should not be loaded. If it is set to true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ImapClient.FetchMessageAsync method (3 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(int sequenceNumber)
Parameter | Type | Description |
---|---|---|
sequenceNumber | Int32 | The sequence number of message |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ImapClient.FetchMessageAsync method (4 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(int sequenceNumber, bool ignoreAttachment)
Parameter | Type | Description |
---|---|---|
sequenceNumber | Int32 | The sequence number of message |
ignoreAttachment | Boolean | A value that defines whether the attachments should not be loaded. If it is set to true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ImapClient.FetchMessageAsync method (5 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(IConnection connection, string uniqueId)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
uniqueId | String | The unique id of message |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ImapClient.FetchMessageAsync method (6 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(string uniqueId)
Parameter | Type | Description |
---|---|---|
uniqueId | String | The unique id of message |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ImapClient.FetchMessageAsync method (7 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(IConnection connection, int sequenceNumber,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
sequenceNumber | Int32 | The sequence number of message |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ImapClient.FetchMessageAsync method (8 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(IConnection connection, int sequenceNumber,
bool ignoreAttachment, CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
sequenceNumber | Int32 | The sequence number of message |
ignoreAttachment | Boolean | A value that defines whether the attachments should not be loaded. If it is set to true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ImapClient.FetchMessageAsync method (9 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(int sequenceNumber, CancellationToken token)
Parameter | Type | Description |
---|---|---|
sequenceNumber | Int32 | The sequence number of message |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ImapClient.FetchMessageAsync method (10 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(int sequenceNumber, bool ignoreAttachment,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
sequenceNumber | Int32 | The sequence number of message |
ignoreAttachment | Boolean | A value that defines whether the attachments should not be loaded. If it is set to true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ImapClient.FetchMessageAsync method (11 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(IConnection connection, string uniqueId,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
uniqueId | String | The unique id of message |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ImapClient.FetchMessageAsync method (12 of 12)
Fetches the message
public Task<MailMessage> FetchMessageAsync(string uniqueId, CancellationToken token)
Parameter | Type | Description |
---|---|---|
uniqueId | String | The unique id of message |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class MailMessage
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email