語言

LdapConnection.BeginSendRequest 方法

定義

非同步地將資料傳送到伺服器。

多載

BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object)

來源:
LdapConnection.cs
來源:
LdapConnection.cs
來源:
LdapConnection.cs
來源:
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 參考非同步傳送的物件。

例外狀況

物件 handle 無效。

request 是 null (Nothing 在 Visual Basic 中)。

部分結果不被支持。

若 partialMode 等於 ReturnPartialResultsAndNotifyCallback,則必須指定回調函數。

適用於

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

來源:
LdapConnection.cs
來源:
LdapConnection.cs
來源:
LdapConnection.cs
來源:
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 參考非同步傳送的物件。

例外狀況

物件 handle 無效。

request 在 Visual Basic 中為空Nothing 。

部分結果不被支持。

若 partialMode 等於 ReturnPartialResultsAndNotifyCallback,則必須指定回調函數。

適用於