Moyosoft Products | Services | Download | Contact us    
Java Outlook Connector
Products  >  Java Outlook Connector  >  API Reference    
API Reference
   
Overview  |  
Classic JavaDoc

Outlook.getFolder

public OutlookFolder getFolder(OutlookFolderID pFolderId)

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