LdapConnection::SendRequest Method (DirectoryRequest^)
.NET Framework (current version)
The SendRequest method sends a single DirectoryRequest as an LDAP v3 operation.
Assembly: System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)
public: [DirectoryServicesPermissionAttribute(SecurityAction::LinkDemand, Unrestricted = true)] virtual DirectoryResponse^ SendRequest( DirectoryRequest^ request ) override
Parameters
- request
-
Type:
System.DirectoryServices.Protocols::DirectoryRequest^
A DirectoryRequest object that contains the request.
Return Value
Type: System.DirectoryServices.Protocols::DirectoryResponse^A DirectoryResponse object that contains the response from the server.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The object is already disposed. The object handle is not valid. |
| ArgumentNullException | asyncResult is null (Nothing in Visual Basic). |
| NotSupportedException | Request is of type DsmlAuthRequest. |
| LdapException | The error code returned by LDAP does not map to a ResultCode enumeration error code. |
| DirectoryOperationException | Thrown if the server returned a DirectoryResponse object with an error. |
.NET Framework
Available since 2.0
Available since 2.0
Show: