IAsyncImapClient.ExistFolderAsync

IAsyncImapClient.ExistFolderAsync method

Check whether this folder exists

public Task<bool> ExistFolderAsync(string folderName, IConnection connection = null, 
    CancellationToken token = default)
ParameterTypeDescription
connectionStringConnection to a server
folderNameIConnectionName of the folder
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Returns true if the folder is existing, otherwise returns false

See Also