久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

即使將 pagesize 設置為更大,directorysearcher 對象是

Is the directorysearcher object capped at 5000 even if pagesize is set to greater(即使將 pagesize 設置為更大,directorysearcher 對象是否上限為 5000)
本文介紹了即使將 pagesize 設置為更大,directorysearcher 對象是否上限為 5000的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

目錄搜索器的 findall 結果方法是否限制為 5000 個結果,即使 pagesize 設置為更大.似乎真的是這樣,因為無論我得到什么結果都恰好是 5000.這是 C#

Is the directorysearcher findall results method capped at 5000 results even if pagesize is set to greater. It really seems to be, because no matter what I get exactly 5000 results. This is C#

推薦答案

首先,它是一個服務器端設置,它限制了一次搜索中返回的最大條目數.默認值為 1'000.

First of all, it's a server-side setting which limits the maximum number of entries returned in a single search. Default is 1'000.

其次,如果您確實需要枚舉超過 1,000 個條目的限制,您應該查看分頁搜索.很簡單,將 DirectorySearcher.PageSize 條目設置為一個值(小于該系統限制),例如500,您將在 500 個條目的頁面中獲得結果.

Secondly, if you really need to enumerate more than this limit of 1'000 entries, you should look into paged searches. Quite simply, set the DirectorySearcher.PageSize entry to a value (less than that system limit), e.g. 500, and you'll get your results in pages of 500 entries.

您將獲得的條目總數沒有限制 - 您可以簡單地枚舉 DirectorySearcher.FindAll() 集合,并且您應該能夠以這種方式處理任意數量的條目.AD 服務器只會簡單地將您的結果以 500 頁為單位進行批處理 - 一旦您枚舉了一頁,就會傳送下一頁.

There's no limit on how many entries you'll get in total - you can simply enumerate the DirectorySearcher.FindAll() collection and you should be able to handle any number of entries that way. The AD server will just simply batch up your results in pages of 500 - once you've enumerated one page, the next one will be delivered.

馬克

這篇關于即使將 pagesize 設置為更大,directorysearcher 對象是否上限為 5000的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Why shouldn#39;t I always use nullable types in C#(為什么我不應該總是在 C# 中使用可空類型)
C# HasValue vs !=null(C# HasValue vs !=null)
C# ADO.NET: nulls and DbNull -- is there more efficient syntax?(C# ADO.NET:空值和 DbNull —— 有沒有更高效的語法?)
How to set null value to int in c#?(如何在c#中將空值設置為int?)
How to handle nulls in LINQ when using Min or Max?(使用 Min 或 Max 時如何處理 LINQ 中的空值?)
Method call if not null in C#(在 C# 中如果不為 null 的方法調用)
主站蜘蛛池模板: 免费的日批视频 | 亚洲一区二区三区桃乃木香奈 | 中文字幕 亚洲一区 | 欧美日一区二区 | 久久久久国产 | 先锋资源网 | 国产精品性做久久久久久 | 天天拍天天操 | 亚洲高清网 | 国产精品久久久久婷婷二区次 | 亚洲人精品午夜 | 日韩精品在线看 | 蜜桃综合在线 | 亚洲国产成人精品女人久久久 | 四虎成人免费视频 | 精品成人免费一区二区在线播放 | 欧美精品1区2区3区 精品国产欧美一区二区 | 成人在线免费 | 狠狠操天天干 | 中国大陆高清aⅴ毛片 | www.国产一区| 99久久精品国产一区二区三区 | 欧美在线视频一区二区 | 国内精品久久久久久 | 69av在线视频 | 精品毛片 | 成人性生交大片免费看中文带字幕 | 中文字幕三区 | 国产视频精品在线观看 | 91免费福利视频 | 99久久婷婷国产亚洲终合精品 | 成人一级毛片 | 99久久精品免费 | 三级在线免费观看 | 精品国产伦一区二区三区观看体验 | 蜜桃av鲁一鲁一鲁一鲁 | 99热在线观看精品 | 国产一区二区在线视频 | 亚洲成人在线网 | 亚洲精品乱码久久久久久蜜桃 | 伊人久久综合影院 |