LdapConnection.SendRequest Method

Definition

Sends a single DirectoryRequest as an LDAP v3 operation.

Overloads

SendRequest(DirectoryRequest)

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

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

C#
public override System.DirectoryServices.Protocols.DirectoryResponse SendRequest(System.DirectoryServices.Protocols.DirectoryRequest request);

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.

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

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

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.

C#
public System.DirectoryServices.Protocols.DirectoryResponse SendRequest(System.DirectoryServices.Protocols.DirectoryRequest request, TimeSpan requestTimeout);

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.

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

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)