LdapConnection.BeginSendRequest 方法

定义

将数据异步发送到服务器。

重载

BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object)

将数据异步发送到服务器。

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

将数据异步发送到服务器。

BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object)

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

将数据异步发送到服务器。

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 枚举中的一个值,用于指定要返回的部分结果的级别。

callback
AsyncCallback

AsyncCallback 函数。

state
Object

包含此请求的状态数据的 Object

返回

引用异步发送的 IAsyncResult 对象。

例外

该对象句柄无效。

requestnull(在 Visual Basic 中为 Nothing)。

不支持部分结果。

如果 partialMode 等于 ReturnPartialResultsAndNotifyCallback,则必须指定回调函数。

适用于

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

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

将数据异步发送到服务器。

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

请求超时之前的时间,以秒为单位。

partialMode
PartialResultProcessing

PartialResultProcessing 枚举中的一个值,用于指定要返回的部分结果的级别。

callback
AsyncCallback

AsyncCallback 函数。

state
Object

包含此请求的状态数据的 Object

返回

引用异步发送的 IAsyncResult 对象。

例外

该对象句柄无效。

request 为 null(在 Visual Basic 中为 Nothing)。

不支持部分结果。

如果 partialMode 等于 ReturnPartialResultsAndNotifyCallback,则必须指定回调函数。

适用于