LdapConnection.BeginSendRequest 方法

定义

将数据异步发送到服务器。Sends data asynchronously to the server.

重载

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)

将数据异步发送到服务器。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

参数

partialMode
PartialResultProcessing

PartialResultProcessing 枚举中的一个值,用于指定要返回的部分结果的级别。A value from PartialResultProcessing enumeration that specifies the level of partial result to return.

callback
AsyncCallback

AsyncCallback 函数。The AsyncCallback function.

state
Object

包含此请求的状态数据的 ObjectAn Object that contains the state data for this request.

返回

IAsyncResult

引用异步发送的 IAsyncResult 对象。A IAsyncResult object that references the asynchronous send.

例外

该对象句柄无效。The object handle is not valid.

requestnull(在 Visual Basic 中为 Nothing)。request is null (Nothing in Visual Basic).

不支持部分结果。Partial results are not supported.

如果 partialMode 等于 ReturnPartialResultsAndNotifyCallback,则必须指定回调函数。A callback function must be specified if partialMode is equal to ReturnPartialResultsAndNotifyCallback.

适用于

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

将数据异步发送到服务器。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

参数

requestTimeout
TimeSpan

请求超时之前的时间,以秒为单位。The time, in seconds, until the request times out.

partialMode
PartialResultProcessing

PartialResultProcessing 枚举中的一个值,用于指定要返回的部分结果的级别。A value from PartialResultProcessing enumeration that specifies the level of partial result to return.

callback
AsyncCallback

AsyncCallback 函数。The AsyncCallback function.

state
Object

包含此请求的状态数据的 ObjectAn Object that contains the state data for this request.

返回

IAsyncResult

引用异步发送的 IAsyncResult 对象。A IAsyncResult object that references the asynchronous send.

例外

该对象句柄无效。The object handle is not valid.

request 为 null(在 Visual Basic 中为 Nothing)。request is null (Nothing in Visual Basic).

不支持部分结果。Partial results are not supported.

如果 partialMode 等于 ReturnPartialResultsAndNotifyCallback,则必须指定回调函数。A callback function must be specified if partialMode is equal to ReturnPartialResultsAndNotifyCallback.

适用于