EwsDeleteAttachmentAsync Method |
Namespace: MailBee.EwsMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<int> DeleteAttachmentAsync(
ItemId id,
string filenameOrAttachId,
bool isAttachId,
bool deleteFirstOccurenceOnly
)
Public Function DeleteAttachmentAsync (
id As ItemId,
filenameOrAttachId As String,
isAttachId As Boolean,
deleteFirstOccurenceOnly As Boolean
) As Task(Of Integer)
Parameters
- id
- Type: ItemId
- filenameOrAttachId
- Type: SystemString
- isAttachId
- Type: SystemBoolean
- deleteFirstOccurenceOnly
- Type: SystemBoolean
Return Value
Type:
TaskInt32A task that represents the asynchronous operation. The value of
TResult parameter is Number of attachments removed, or zero if no attachments with the given filename or ID found,
or -1 on error (if
ThrowExceptions is
false).
Exceptions Remarks See Also