LdapConnection.GetPartialResults(IAsyncResult) 方法

定义

GetPartialResults(IAsyncResult) 方法检索异步操作的部分结果。The GetPartialResults(IAsyncResult) method retrieves partial results of an asynchronous operation.

public:
 System::DirectoryServices::Protocols::PartialResultsCollection ^ GetPartialResults(IAsyncResult ^ asyncResult);
public System.DirectoryServices.Protocols.PartialResultsCollection GetPartialResults (IAsyncResult asyncResult);
member this.GetPartialResults : IAsyncResult -> System.DirectoryServices.Protocols.PartialResultsCollection
Public Function GetPartialResults (asyncResult As IAsyncResult) As PartialResultsCollection

参数

asyncResult
IAsyncResult

一个 IAsyncResult 对象,它包含该请求的状态数据。An IAsyncResult object that contains state data for this request.

返回

PartialResultsCollection

一个包含部分结果的 PartialResultsCollection 对象。A PartialResultsCollection object that contains the partial results.

例外

已释放该对象。The object is already disposed. 该对象句柄无效。The object handle is not valid.

asyncResult 为 null(在 Visual Basic 中为 Nothing)。asyncResult is null (Nothing in Visual Basic).

asyncResultBeginSendRequest 调用中返回的 asyncResult 不匹配。asyncResult does not match the asyncResult returned in the BeginSendRequest call.

LDAP 返回的错误代码不映射到 ResultCode 枚举错误代码。The error code returned by LDAP does not map to a ResultCode enumeration error code.

如果服务器返回了有错误的 DirectoryResponse 对象,则引发该异常。Thrown if the server returned a DirectoryResponse object with an error.

适用于