API Reference
| Classic JavaDoc |
Outlook.getFolder
public OutlookFolder getFolder(OutlookFolderID pFolderId)
public OutlookFolder getFolder(String folderPath)
Retrieve information about an Outlook folder identified by the
folder ID.Returns:
OutlookFolder object
Throws:ComponentObjectModelException | if any COM error occurs. |
public OutlookFolder getFolder(String folderPath)
Returns a folder for the specified name or path. Accepted path separators are '\' or '/'.
Example:
Outlook outlook = new Outlook();
OutlookFolder inbox = outlook.getFolder("Personal folders\\Inbox");
OutlookFolder myPublicFolder = outlook.getFolder("Public Folders/All Public Folders/My folder");
outlook.dispose();
Community comments
Powered by JavaDocPlus