ImapClientFetchAttachmentAsync Method (IConnection, Int32, String, CancellationToken) |
Fetches the specified attachment
Namespace:
Aspose.Email.Clients.Imap
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntaxpublic Task<Attachment> FetchAttachmentAsync(
IConnection connection,
int sequenceNumber,
string attachmentName,
CancellationToken token
)
Public Function FetchAttachmentAsync (
connection As IConnection,
sequenceNumber As Integer,
attachmentName As String,
token As CancellationToken
) As Task(Of Attachment)
public:
Task<Attachment^>^ FetchAttachmentAsync(
IConnection^ connection,
int sequenceNumber,
String^ attachmentName,
CancellationToken token
)
member FetchAttachmentAsync :
connection : IConnection *
sequenceNumber : int *
attachmentName : string *
token : CancellationToken -> Task<Attachment>
Parameters
- connection
- Type: Aspose.Email.ClientsIConnection
Connection to a server - sequenceNumber
- Type: SystemInt32
The sequence number of a message - attachmentName
- Type: SystemString
A name of attachment - token
- Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.
Return Value
Type:
TaskAttachmentTask object, with delegate for this operation
See Also