コード例 #1
0
 private static void FindWellKnownFoldersWithinInbox(IMailbox mailbox, Dictionary <WellKnownFolderType, byte[]> wellKnownFolders)
 {
     byte[] receiveFolderEntryId = mailbox.GetReceiveFolderEntryId("IPM");
     if (receiveFolderEntryId != null)
     {
         using (IFolder inbox = CommonUtils.GetFolder(mailbox, receiveFolderEntryId))
         {
             if (inbox != null)
             {
                 FolderHierarchyUtils.FindWellKnownFolders(mailbox, FolderHierarchyUtils.InboxRefs, (PropTag[] pta) => inbox.GetProps(pta), wellKnownFolders);
             }
         }
     }
 }