EwsDeleteAttachmentAsync Method

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
Syntax
public Task<int> DeleteAttachmentAsync(
	ItemId id,
	string filenameOrAttachId,
	bool isAttachId,
	bool deleteFirstOccurenceOnly
)

Parameters

id
Type: ItemId
filenameOrAttachId
Type: SystemString
isAttachId
Type: SystemBoolean
deleteFirstOccurenceOnly
Type: SystemBoolean

Return Value

Type: TaskInt32
A 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
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
NotImplementedExceptionThe .NET runtime is .NET Framework.
Remarks
Note Note
This method is not implemented in .NET Framework. Use DeleteAttachment(ItemId, String, Boolean, Boolean) instead.
See Also