This documentation is archived and is not being maintained.

LdapConnection.EndSendRequest Method

The EndSendRequest method completes an asynchronous request.

Namespace: System.DirectoryServices.Protocols
Assembly: System.DirectoryServices.Protocols (in system.directoryservices.protocols.dll)

public DirectoryResponse EndSendRequest (
	IAsyncResult asyncResult
public DirectoryResponse EndSendRequest (
	IAsyncResult asyncResult
public function EndSendRequest (
	asyncResult : IAsyncResult
) : DirectoryResponse
Not applicable.



An IAsyncResult object that contains state data for this request.

Return Value

A DirectoryResponse object that contains the results of the request.

Exception typeCondition


Thrown if the object is already disposed. The object handle is not valid.


asyncResult is null (Nothing in Visual Basic).


asyncResult does not match the asyncResult returned in the BeginSendRequest call.


The error code returned by LDAP does not map to a ResultCode enumeration error code.


Thrown if the server returned a DirectoryResponse object with an error.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0