Ews.GetAttachmentAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 7.0.9083)
GetAttachmentAsync(EwsAttachmentId, Object)
Begins asynchronous GetAttachment operation. Gets an attachment identified by its ID.
Declaration
public Task<Attachment> GetAttachmentAsync(EwsAttachmentId attachmentId, object state = null)
Parameters
Type | Name | Description |
---|---|---|
EwsAttachmentId | attachmentId | ID of an attachment to get. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Attachment> | Attachment object if the attachment is found; null reference (Nothing in VB.NET) otherwise. |