ImapClient.ExistFolderAsync

ExistFolderAsync(string)

Check whether this folder exists

public Task<bool> ExistFolderAsync(string folderName)
ParameterTypeDescription
folderNameStringName of the folder

Return Value

Task object, with delegate for this operation

See Also


ExistFolderAsync(IConnection, string)

Check whether this folder exists

public Task<bool> ExistFolderAsync(IConnection connection, string folderName)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringName of the folder

Return Value

Task object, with delegate for this operation

See Also


ExistFolderAsync(string, CancellationToken)

Check whether this folder exists

public Task<bool> ExistFolderAsync(string folderName, CancellationToken token)
ParameterTypeDescription
folderNameStringName of the folder
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ExistFolderAsync(IConnection, string, CancellationToken)

Check whether this folder exists

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

Return Value

Task object, with delegate for this operation

See Also