IAsyncEwsClient.FolderExistsAsync
IAsyncEwsClient.FolderExistsAsync method
Checks whether the specified folder exists.
public Task<bool> FolderExistsAsync(string parentFolderUri, string folderName,
CancellationToken cancellationToken = default)
Parameter | Type | Description |
---|---|---|
parentFolderUri | String | An uri of parent folder. |
folderName | String | A folder name. |
cancellationToken | CancellationToken | The cancellation token. |
Return Value
true
if the specified folder exists in the specified parent folder; otherwise, false
.
Exceptions
exception | condition |
---|---|
AsposeArgumentException | parentFolderUri or folderName is null or empty |
See Also
- interface IAsyncEwsClient
- namespace Aspose.Email.Clients.Exchange.WebService
- assembly Aspose.Email