Esempio n. 1
0
        public OfflineAddressBook[] FindOABsForWebDistributionPoint(ADOabVirtualDirectory vDir)
        {
            if (vDir == null)
            {
                throw new ArgumentNullException("vDir");
            }
            QueryFilter filter = new ComparisonFilter(ComparisonOperator.Equal, OfflineAddressBookSchema.VirtualDirectories, vDir.Id);
            ADPagedReader <OfflineAddressBook> adpagedReader = this.FindPaged <OfflineAddressBook>(null, QueryScope.SubTree, filter, null, 0);
            List <OfflineAddressBook>          list          = new List <OfflineAddressBook>();

            foreach (OfflineAddressBook item in adpagedReader)
            {
                list.Add(item);
            }
            return(list.ToArray());
        }
Esempio n. 2
0
 OfflineAddressBook[] IConfigurationSession.FindOABsForWebDistributionPoint(ADOabVirtualDirectory vDir)
 {
     return(base.InvokeWithAPILogging <OfflineAddressBook[]>(() => this.GetSession().FindOABsForWebDistributionPoint(vDir), "FindOABsForWebDistributionPoint"));
 }