ImapClient.ExistFolder

ExistFolder(string)

Check whether this folder exists

public bool ExistFolder(string folderName)
ParameterTypeDescription
folderNameStringName of the folder

Return Value

Returns true if the folder is existing, otherwise returns false

See Also


ExistFolder(string, out ImapFolderInfo)

Check whether this folder exists, extract folder info if so

public bool ExistFolder(string folderName, out ImapFolderInfo folderInfo)
ParameterTypeDescription
folderNameStringName of the folder
folderInfoImapFolderInfo&Folder information

Return Value

Returns true if the folder is existing, otherwise returns false

See Also


ExistFolder(IConnection, string)

Check whether this folder exists

public bool ExistFolder(IConnection connection, string folderName)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringName of the folder

Return Value

Returns true if the folder is existing, otherwise returns false

See Also


ExistFolder(IConnection, string, out ImapFolderInfo)

Check whether this folder exists, extract folder info if so

public bool ExistFolder(IConnection connection, string folderName, out ImapFolderInfo folderInfo)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringName of the folder
folderInfoImapFolderInfo&Folder information

Return Value

Returns true if the folder is existing, otherwise returns false

See Also