예제 #1
0
        public static StoreObjectId[] GetMyContactExtendedFolders(IMailboxSession mailboxSession, StoreObjectId[] myContactsFolders, bool forceCreate)
        {
            ArgumentValidator.ThrowIfNull("mailboxSession", mailboxSession);
            ArgumentValidator.ThrowIfNull("myContactsFolders", myContactsFolders);
            StoreObjectId[]         folderIds = ContactsSearchFolderCriteria.GetFolderIds(mailboxSession, forceCreate, ContactsSearchFolderCriteria.BaseScopeForMyContactExtended);
            HashSet <StoreObjectId> hashSet   = new HashSet <StoreObjectId>(StoreId.EqualityComparer);

            hashSet.UnionWith(folderIds);
            hashSet.UnionWith(myContactsFolders);
            StoreObjectId[] array = new StoreObjectId[hashSet.Count];
            hashSet.CopyTo(array);
            return(array);
        }
예제 #2
0
 public StoreObjectId[] GetDefaultFolderScope(IMailboxSession session, bool forceCreate)
 {
     ArgumentValidator.ThrowIfNull("session", session);
     return(ContactsSearchFolderCriteria.GetFolderIds(session, forceCreate, this.scopeDefaultFolderTypes));
 }