Редагувати

Поділитися через


LdapConnection.BeginSendRequest Method

Definition

Sends data asynchronously to the server.

Overloads

BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object)

Sends data asynchronously to the server.

BeginSendRequest(DirectoryRequest, TimeSpan, PartialResultProcessing, AsyncCallback, Object)

Sends data asynchronously to the server.

BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object)

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

Sends data asynchronously to the server.

public:
 IAsyncResult ^ BeginSendRequest(System::DirectoryServices::Protocols::DirectoryRequest ^ request, System::DirectoryServices::Protocols::PartialResultProcessing partialMode, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginSendRequest (System.DirectoryServices.Protocols.DirectoryRequest request, System.DirectoryServices.Protocols.PartialResultProcessing partialMode, AsyncCallback callback, object state);
member this.BeginSendRequest : System.DirectoryServices.Protocols.DirectoryRequest * System.DirectoryServices.Protocols.PartialResultProcessing * AsyncCallback * obj -> IAsyncResult
Public Function BeginSendRequest (request As DirectoryRequest, partialMode As PartialResultProcessing, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

partialMode
PartialResultProcessing

A value from PartialResultProcessing enumeration that specifies the level of partial result to return.

callback
AsyncCallback

The AsyncCallback function.

state
Object

An Object that contains the state data for this request.

Returns

A IAsyncResult object that references the asynchronous send.

Exceptions

The object handle is not valid.

request is null (Nothing in Visual Basic).

Partial results are not supported.

A callback function must be specified if partialMode is equal to ReturnPartialResultsAndNotifyCallback.

Applies to

BeginSendRequest(DirectoryRequest, TimeSpan, PartialResultProcessing, AsyncCallback, Object)

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

Sends data asynchronously to the server.

public:
 IAsyncResult ^ BeginSendRequest(System::DirectoryServices::Protocols::DirectoryRequest ^ request, TimeSpan requestTimeout, System::DirectoryServices::Protocols::PartialResultProcessing partialMode, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginSendRequest (System.DirectoryServices.Protocols.DirectoryRequest request, TimeSpan requestTimeout, System.DirectoryServices.Protocols.PartialResultProcessing partialMode, AsyncCallback callback, object state);
member this.BeginSendRequest : System.DirectoryServices.Protocols.DirectoryRequest * TimeSpan * System.DirectoryServices.Protocols.PartialResultProcessing * AsyncCallback * obj -> IAsyncResult
Public Function BeginSendRequest (request As DirectoryRequest, requestTimeout As TimeSpan, partialMode As PartialResultProcessing, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

requestTimeout
TimeSpan

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

partialMode
PartialResultProcessing

A value from PartialResultProcessing enumeration that specifies the level of partial result to return.

callback
AsyncCallback

The AsyncCallback function.

state
Object

An Object that contains the state data for this request.

Returns

A IAsyncResult object that references the asynchronous send.

Exceptions

The object handle is not valid.

request is null (Nothing in Visual Basic).

Partial results are not supported.

A callback function must be specified if partialMode is equal to ReturnPartialResultsAndNotifyCallback.

Applies to