ImapClientExistFolder Method (IConnection, String) |
Check whether this folder exists
Namespace:
Aspose.Email.Clients.Imap
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntaxpublic bool ExistFolder(
IConnection connection,
string folderName
)
Public Function ExistFolder (
connection As IConnection,
folderName As String
) As Boolean
public:
bool ExistFolder(
IConnection^ connection,
String^ folderName
)
member ExistFolder :
connection : IConnection *
folderName : string -> bool
Parameters
- connection
- Type: Aspose.Email.ClientsIConnection
Connection to a server - folderName
- Type: SystemString
Name of the folder
Return Value
Type:
BooleanReturns true if the folder is existing, otherwise returns false
See Also