EwsAddAttachmentToItemAsync Method

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task<FileAttachment> AddAttachmentToItemAsync(
	ItemId id,
	string filename,
	string targetFilename
)

Parameters

id
Type: ItemId
filename
Type: SystemString
targetFilename
Type: SystemString

Return Value

Type: TaskFileAttachment
A task that represents the asynchronous operation. The value of TResult parameter points to the EWS Managed API FileAttachment object representing the attachment just added, or a null reference (Nothing in Visual Basic) on error.
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 AddAttachmentToItem(ItemId, String, String) instead.
See Also