IAsyncEwsClient.FolderExistsAsync

IAsyncEwsClient.FolderExistsAsync method

Checks whether the specified folder exists.

public Task<bool> FolderExistsAsync(string parentFolderUri, string folderName, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
parentFolderUriStringAn uri of parent folder.
folderNameStringA folder name.
cancellationTokenCancellationTokenThe cancellation token.

Return Value

true if the specified folder exists in the specified parent folder; otherwise, false.

Exceptions

exceptioncondition
AsposeArgumentExceptionparentFolderUri or folderName is null or empty

See Also