IAsyncEwsClient.EmptyFolderAsync

IAsyncEwsClient.EmptyFolderAsync method

Empties the specified folder

public Task EmptyFolderAsync(string folderUri, 
    EmptyFolderOptions options = EmptyFolderOptions.None, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
folderUriStringSpecifies the folder to be empty
optionsEmptyFolderOptionsSpecifies the options of clearing folder
cancellationTokenCancellationTokenThe cancellation token.

Exceptions

exceptioncondition
ExchangeExceptionEmptyFolder operation failed
AsposeArgumentExceptionfolderUri is null or empty

See Also