ImapClientExistFolder Method (IConnection, String, ImapFolderInfo)

Check whether this folder exists, extract folder info if so

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public bool ExistFolder(
	IConnection connection,
	string folderName,
	out ImapFolderInfo folderInfo
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
folderName
Type: SystemString
Name of the folder
folderInfo
Type: Aspose.Email.Clients.ImapImapFolderInfo
Folder information

Return Value

Type: Boolean
Returns true if the folder is existing, otherwise returns false
See Also