IAsyncEwsClient.CreateItemsAsync

IAsyncEwsClient.CreateItemsAsync method

Creates the specified items in the specified folder

public Task<IEnumerable<ExchangeUploadItemResult>> CreateItemsAsync(
    IEnumerable<ExchangeStreamedItem> items, string parentFolderUri, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
itemsIEnumerable`1The items to be uploaded
parentFolderUriStringSpecifies the folder in which to place the items
cancellationTokenCancellationTokenThe cancellation token.

Return Value

An array of ExchangeUploadItemResult

Exceptions

exceptioncondition
AsposeArgumentNullExceptionitems is null
AsposeArgumentExceptionitems is empty
AsposeArgumentExceptionparentFolderUri is null or empty

See Also