ImapClientSaveMessageAsync Method (IConnection, Int32, String) |
Downloads the message with the specified sequence number and writes its data into a local file
Namespace:
Aspose.Email.Clients.Imap
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntaxpublic Task SaveMessageAsync(
IConnection connection,
int sequenceNumber,
string fileName
)
Public Function SaveMessageAsync (
connection As IConnection,
sequenceNumber As Integer,
fileName As String
) As Task
public:
Task^ SaveMessageAsync(
IConnection^ connection,
int sequenceNumber,
String^ fileName
)
member SaveMessageAsync :
connection : IConnection *
sequenceNumber : int *
fileName : string -> Task
Parameters
- connection
- Type: Aspose.Email.ClientsIConnection
Connection to a server - sequenceNumber
- Type: SystemInt32
The sequence number of the message - fileName
- Type: SystemString
The path of the local file. This cannot be a directory
Return Value
Type:
TaskTask object, with delegate for this operation
See Also