PartialResultProcessing 枚举


PartialResultProcessing 枚举指定正处理的部分结果所要求的类型。The PartialResultProcessing enumeration specifies the required type of partial results processing.

public enum class PartialResultProcessing
public enum PartialResultProcessing
type PartialResultProcessing = 
Public Enum PartialResultProcessing


NoPartialResultSupport 0

应用程序将不检索部分结果。The application will not retrieve partial results. 该值等于 0。The value is equal to 0.

ReturnPartialResults 1

应用程序将检索部分结果。The application will retrieve partial results. 值等于 1。The value is equal to 1.

ReturnPartialResultsAndNotifyCallback 2

应用程序将检索部分结果并使用回调机制。An application will retrieve partial results and use the callback mechanism. 值等于 2。The value is equal to 2.


执行异步操作的应用程序可以使用BeginSendRequest标准 .net 样式中的方法、 EndSendRequest方法AsyncCallback和 (可选) 委托。An application performing an asynchronous operation can use the BeginSendRequest method, EndSendRequest method, and (optionally) the AsyncCallback delegate in the standard .NET style.

检索部分结果的应用程序可以调用BeginSendRequest , 并将 ReturnPartialResults 或 ReturnPartialResultsAndNotifyCallback partialMode作为参数传递。An application retrieving partial results can call the BeginSendRequest and pass either ReturnPartialResults or ReturnPartialResultsAndNotifyCallback as the partialMode parameter.

在大多数情况下, 使用 NoPartialResultSupport 可获得更好的性能和可伸缩性。In most scenarios, use NoPartialResultSupport for better performance and scalability. 仅建议在需要检索部分结果的情况下使用 ReturnPartialResults 或 ReturnPartialResultsAndNotifyCallback。The use of ReturnPartialResults or ReturnPartialResultsAndNotifyCallback is only recommended in the scenario where the retrieval of partial results is desired. 例如, 使用DirectoryNotificationControl指定的执行搜索时, 仅当对该对象进行了更改时, 才会返回搜索结果。For example, when performing a search with the DirectoryNotificationControl specified, the search results are returned only when changes are made to that object. 搜索永远不会完成并返回部分结果。The search never completes and partial results are returned.