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)。

asyncResult 不符合 BeginSendRequest 呼叫中傳回的 asyncResult

由 LDAP 傳回的錯誤碼,並不對應於 ResultCode 列舉型別錯誤碼。

伺服器傳 DirectoryResponse 回物件時發生錯誤。

適用於