LdapConnection.EndSendRequest(IAsyncResult) 方法

定义

EndSendRequest(IAsyncResult) 方法完成异步请求。

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

参数

asyncResult
IAsyncResult

一个 IAsyncResult 对象,它包含该请求的状态数据。

返回

一个 DirectoryResponse 对象,它包含该请求的结果。

例外

已释放该对象。 该对象句柄无效。

asyncResult 为 null(在 Visual Basic 中为 Nothing)。

asyncResultBeginSendRequest 调用中返回的 asyncResult 不匹配。

LDAP 返回的错误代码未映射到 ResultCode 枚举错误代码。

服务器返回了一个 DirectoryResponse 包含错误的 对象。

适用于