Bewerken

Delen via


LdapConnection.SendRequest Method

Definition

Sends a single DirectoryRequest as an LDAP v3 operation.

Overloads

SendRequest(DirectoryRequest)

The SendRequest(DirectoryRequest) method sends a single DirectoryRequest as an LDAP v3 operation.

SendRequest(DirectoryRequest, TimeSpan)

The SendRequest(DirectoryRequest, TimeSpan) method sends a single DirectoryRequest as an LDAP v3 operation.

SendRequest(DirectoryRequest)

Source:
LdapConnection.cs
Source:
LdapConnection.cs
Source:
LdapConnection.cs

The SendRequest(DirectoryRequest) method sends a single DirectoryRequest as an LDAP v3 operation.

public:
 override System::DirectoryServices::Protocols::DirectoryResponse ^ SendRequest(System::DirectoryServices::Protocols::DirectoryRequest ^ request);
public override System.DirectoryServices.Protocols.DirectoryResponse SendRequest (System.DirectoryServices.Protocols.DirectoryRequest request);
override this.SendRequest : System.DirectoryServices.Protocols.DirectoryRequest -> System.DirectoryServices.Protocols.DirectoryResponse
Public Overrides Function SendRequest (request As DirectoryRequest) As DirectoryResponse

Parameters

request
DirectoryRequest

A DirectoryRequest object that contains the request.

Returns

A DirectoryResponse object that contains the response from the server.

Exceptions

The object is already disposed. The object handle is not valid.

asyncResult is null (Nothing in Visual Basic).

Request is of type DsmlAuthRequest.

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

The server returned a DirectoryResponse object with an error.

Applies to

SendRequest(DirectoryRequest, TimeSpan)

Source:
LdapConnection.cs
Source:
LdapConnection.cs
Source:
LdapConnection.cs

The SendRequest(DirectoryRequest, TimeSpan) method sends a single DirectoryRequest as an LDAP v3 operation.

public:
 System::DirectoryServices::Protocols::DirectoryResponse ^ SendRequest(System::DirectoryServices::Protocols::DirectoryRequest ^ request, TimeSpan requestTimeout);
public System.DirectoryServices.Protocols.DirectoryResponse SendRequest (System.DirectoryServices.Protocols.DirectoryRequest request, TimeSpan requestTimeout);
override this.SendRequest : System.DirectoryServices.Protocols.DirectoryRequest * TimeSpan -> System.DirectoryServices.Protocols.DirectoryResponse
Public Function SendRequest (request As DirectoryRequest, requestTimeout As TimeSpan) As DirectoryResponse

Parameters

request
DirectoryRequest

A DirectoryRequest object that contains the request.

requestTimeout
TimeSpan

The length of time, in seconds, until the request times out.

Returns

A DirectoryResponse object that contains the response from the server.

Exceptions

The object is already disposed. The object handle is not valid.

asyncResult is null (Nothing in Visual Basic).

Request is of type DsmlAuthRequest.

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

The server returned a DirectoryResponse object with an error.

Applies to