ImapClient.SaveMessageAsync
SaveMessageAsync(IConnection, int, Stream)
Downloads the message with the specified sequence number and writes its data into a supplied stream
public Task SaveMessageAsync(IConnection connection, int sequenceNumber, Stream resultStream)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
sequenceNumber | Int32 | The sequence number of the message |
resultStream | Stream | Stream that will receive the message |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(IConnection, string, Stream)
Downloads the message with the specified sequence number and writes its data into a supplied stream
public Task SaveMessageAsync(IConnection connection, string uniqueId, Stream resultStream)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
uniqueId | String | The unique Id of the message |
resultStream | Stream | Stream that will receive the message |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(IConnection, string, string)
Downloads the message with the specified sequence number and writes its data into a local file
public Task SaveMessageAsync(IConnection connection, string uniqueId, string fileName)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
uniqueId | String | The unique Id of the message |
fileName | String | The path of the local file. This cannot be a directory |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(IConnection, int, string)
Downloads the message with the specified sequence number and writes its data into a local file
public Task SaveMessageAsync(IConnection connection, int sequenceNumber, string fileName)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
sequenceNumber | Int32 | The sequence number of the message |
fileName | String | The path of the local file. This cannot be a directory |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(int, Stream)
Downloads the message with the specified sequence number and writes its data into a supplied stream
public Task SaveMessageAsync(int sequenceNumber, Stream resultStream)
Parameter | Type | Description |
---|---|---|
sequenceNumber | Int32 | The sequence number of the message |
resultStream | Stream | Stream that will receive the message |
Return Value
Task object, with delegate for this operation
See Also
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(string, Stream)
Downloads the message with the specified sequence number and writes its data into a supplied stream
public Task SaveMessageAsync(string uniqueId, Stream resultStream)
Parameter | Type | Description |
---|---|---|
uniqueId | String | The unique Id of the message |
resultStream | Stream | Stream that will receive the message |
Return Value
Task object, with delegate for this operation
See Also
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(string, string)
Downloads the message with the specified sequence number and writes its data into a local file
public Task SaveMessageAsync(string uniqueId, string fileName)
Parameter | Type | Description |
---|---|---|
uniqueId | String | The unique Id of the message |
fileName | String | The path of the local file. This cannot be a directory |
Return Value
Task object, with delegate for this operation
See Also
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(int, string)
Downloads the message with the specified sequence number and writes its data into a local file
public Task SaveMessageAsync(int sequenceNumber, string fileName)
Parameter | Type | Description |
---|---|---|
sequenceNumber | Int32 | The sequence number of the message |
fileName | String | The path of the local file. This cannot be a directory |
Return Value
Task object, with delegate for this operation
See Also
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(IConnection, int, Stream, CancellationToken)
Downloads the message with the specified sequence number and writes its data into a supplied stream
public Task SaveMessageAsync(IConnection connection, int sequenceNumber, Stream resultStream,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
sequenceNumber | Int32 | The sequence number of the message |
resultStream | Stream | Stream that will receive the message |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(IConnection, string, Stream, CancellationToken)
Downloads the message with the specified sequence number and writes its data into a supplied stream
public Task SaveMessageAsync(IConnection connection, string uniqueId, Stream resultStream,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
uniqueId | String | The unique Id of the message |
resultStream | Stream | Stream that will receive the message |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(IConnection, string, string, CancellationToken)
Downloads the message with the specified sequence number and writes its data into a local file
public Task SaveMessageAsync(IConnection connection, string uniqueId, string fileName,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
uniqueId | String | The unique Id of the message |
fileName | String | The path of the local file. This cannot be a directory |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(IConnection, int, string, CancellationToken)
Downloads the message with the specified sequence number and writes its data into a local file
public Task SaveMessageAsync(IConnection connection, int sequenceNumber, string fileName,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
sequenceNumber | Int32 | The sequence number of the message |
fileName | String | The path of the local file. This cannot be a directory |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(int, Stream, CancellationToken)
Downloads the message with the specified sequence number and writes its data into a supplied stream
public Task SaveMessageAsync(int sequenceNumber, Stream resultStream, CancellationToken token)
Parameter | Type | Description |
---|---|---|
sequenceNumber | Int32 | The sequence number of the message |
resultStream | Stream | Stream that will receive the message |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(string, Stream, CancellationToken)
Downloads the message with the specified sequence number and writes its data into a supplied stream
public Task SaveMessageAsync(string uniqueId, Stream resultStream, CancellationToken token)
Parameter | Type | Description |
---|---|---|
uniqueId | String | The unique Id of the message |
resultStream | Stream | Stream that will receive the message |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(string, string, CancellationToken)
Downloads the message with the specified sequence number and writes its data into a local file
public Task SaveMessageAsync(string uniqueId, string fileName, CancellationToken token)
Parameter | Type | Description |
---|---|---|
uniqueId | String | The unique Id of the message |
fileName | String | The path of the local file. This cannot be a directory |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
SaveMessageAsync(int, string, CancellationToken)
Downloads the message with the specified sequence number and writes its data into a local file
public Task SaveMessageAsync(int sequenceNumber, string fileName, CancellationToken token)
Parameter | Type | Description |
---|---|---|
sequenceNumber | Int32 | The sequence number of the message |
fileName | String | The path of the local file. This cannot be a directory |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email