共用方式為


LdapConnection.BeginSendRequest 方法

定義

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

多載

BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object)

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

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

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

BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object)

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

例外狀況

物件控制代碼無效。

requestnull (在 Visual Basic 中為 Nothing)。

不支援部分結果。

如果 partialMode 等於 ReturnPartialResultsAndNotifyCallback,則必須指定回呼函式。

適用於

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

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

例外狀況

物件控制代碼無效。

request 是 null (在 Visual Basic 中為 Nothing)。

不支援部分結果。

如果 partialMode 等於 ReturnPartialResultsAndNotifyCallback,則必須指定回呼函式。

適用於