Guest User

Untitled

a guest
Jun 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Outlook.Explorer olExplorer = this.Application.ActiveExplorer();
  2.  
  3. Outlook.Folder f = olExplorer.CurrentFolder as Outlook.Folder;
  4.  
  5. Outlook.Folders olFolders = OutlookApp.Session.Folders;
  6.  
  7. for (int i = 1; i <= olFolders.Count; i++)
  8. {
  9. if (olFolders[i].EntryID == olExplorer.CurrentFolder.EntryID)
  10. {
  11. // folder found assign and use it.
  12. }
  13. }
Add Comment
Please, Sign In to add comment