PartialResultProcessing PartialResultProcessing PartialResultProcessing PartialResultProcessing Enum

定义

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

public enum class PartialResultProcessing
public enum PartialResultProcessing
type PartialResultProcessing = 
Public Enum PartialResultProcessing
继承
PartialResultProcessingPartialResultProcessingPartialResultProcessingPartialResultProcessing

字段

NoPartialResultSupport NoPartialResultSupport NoPartialResultSupport NoPartialResultSupport 0

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

ReturnPartialResults ReturnPartialResults ReturnPartialResults ReturnPartialResults 1

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

ReturnPartialResultsAndNotifyCallback ReturnPartialResultsAndNotifyCallback ReturnPartialResultsAndNotifyCallback ReturnPartialResultsAndNotifyCallback 2

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

注解

执行异步操作的应用程序可以使用BeginSendRequest方法,EndSendRequest方法,和 (可选)AsyncCallback委托中的标准.NET 样式。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 或作为 ReturnPartialResultsAndNotifyCallbackpartialMode参数。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.

适用于