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
Syntaxpublic bool ExistFolder(
IConnection connection,
string folderName,
out ImapFolderInfo folderInfo
)
Public Function ExistFolder (
connection As IConnection,
folderName As String,
<OutAttribute> ByRef folderInfo As ImapFolderInfo
) As Boolean
public:
bool ExistFolder(
IConnection^ connection,
String^ folderName,
[OutAttribute] ImapFolderInfo^% folderInfo
)
member ExistFolder :
connection : IConnection *
folderName : string *
folderInfo : ImapFolderInfo byref -> bool
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:
BooleanReturns true if the folder is existing, otherwise returns false
See Also