久久久久久久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 的方法調用)
主站蜘蛛池模板: 亚洲一区二区免费视频 | 免费福利视频一区二区三区 | 国产97色| 视频一区二区在线观看 | 一区二区三区视频在线观看 | 国产网站在线免费观看 | 国产日韩免费视频 | 日本一区二区三区免费观看 | 亚洲精品久久久一区二区三区 | 99tv| 久久99精品久久久久久 | 国产在线观 | 中文字幕精品一区二区三区精品 | 亚洲精品一区二区三区蜜桃久 | 日日摸夜夜爽人人添av | 日日夜夜精品视频 | 黄色一级毛片 | 国产网站在线免费观看 | 日韩综合在线视频 | 精品成人一区 | 中文二区 | 91久久精品日日躁夜夜躁国产 | 国产在线1区| 99精品欧美一区二区三区 | h网站在线观看 | 日韩欧美福利视频 | 国产专区在线 | 久久久免费 | 色狠狠桃花综合 | 亚洲伊人a | 国产精品国产三级国产aⅴ无密码 | 欧美精品欧美精品系列 | 人人鲁人人莫人人爱精品 | 超碰在线网站 | 久国久产久精永久网页 | 久久精品一级 | 国产欧美一区二区三区在线看蜜臀 | 日韩成年人视频在线 | 国产 欧美 日韩 一区 | 日韩久久成人 | 黄频视频 |