ImapClient.GetFolderInfoAsync

GetFolderInfoAsync(IConnection, string)

Returns information about the specified folder without selecting it

public Task<ImapFolderInfo> GetFolderInfoAsync(IConnection connection, string folderName)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringFolder to retrieve information about

Return Value

Task object, with delegate for this operation

See Also


GetFolderInfoAsync(string)

Returns information about the specified folder without selecting it

public Task<ImapFolderInfo> GetFolderInfoAsync(string folderName)
ParameterTypeDescription
folderNameStringFolder to retrieve information about

Return Value

Task object, with delegate for this operation

See Also


GetFolderInfoAsync(IConnection, string, CancellationToken)

Returns information about the specified folder without selecting it

public Task<ImapFolderInfo> GetFolderInfoAsync(IConnection connection, string folderName, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringFolder to retrieve information about
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


GetFolderInfoAsync(string, CancellationToken)

Returns information about the specified folder without selecting it

public Task<ImapFolderInfo> GetFolderInfoAsync(string folderName, CancellationToken token)
ParameterTypeDescription
folderNameStringFolder to retrieve information about
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also