public EwsFolder GetFolderByName( string folderFullName, List<EwsFolder> folders )
Public Function GetFolderByName ( folderFullName As String, folders As List(Of EwsFolder) ) As EwsFolder
|MailBeeInvalidArgumentException||folderFullName or folders a null reference (Nothing in Visual Basic).|
This method does not send anything to the MS Exchange server. It just performs search over the provided collection. To get the list of folders which you can then supply to this method, you can use DownloadFolders(Boolean) method.
To delimit levels of hierarchy in the folder name, use the same character which is set by FolderLevelDelimiter property. By default, it's '/' (forward slash).
|Although you could always call a method like DownloadFolderByFullName(String) to find folders, it may not be effective if you need to make multiple folder search queries. If (instead of making a network query each time) you download folders only once and then access the cached list with method, you'll achieve better performance.|