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); }
public StoreObjectId[] GetDefaultFolderScope(IMailboxSession session, bool forceCreate) { ArgumentValidator.ThrowIfNull("session", session); return(ContactsSearchFolderCriteria.GetFolderIds(session, forceCreate, this.scopeDefaultFolderTypes)); }