LdapConnection.BeginSendRequest 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將資料非同步地傳送至伺服器。
多載
BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object)
將資料非同步地傳送至伺服器。
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
參數
- request
- DirectoryRequest
DirectoryRequest 物件。
- partialMode
- PartialResultProcessing
來自 PartialResultProcessing 列舉型別的值,指定要傳回之部分結果的層級。
- callback
- AsyncCallback
AsyncCallback 函式。
傳回
IAsyncResult 物件,參考非同步傳送。
例外狀況
物件控制代碼無效。
request
為 null
(在 Visual Basic 中為 Nothing
)。
不支援部分結果。
如果 partialMode
等於 ReturnPartialResultsAndNotifyCallback,則必須指定回呼函式。
適用於
BeginSendRequest(DirectoryRequest, TimeSpan, PartialResultProcessing, AsyncCallback, Object)
將資料非同步地傳送至伺服器。
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
參數
- request
- DirectoryRequest
DirectoryRequest 物件。
- requestTimeout
- TimeSpan
要求逾時之前所經過的時間 (以秒為單位)。
- partialMode
- PartialResultProcessing
來自 PartialResultProcessing 列舉型別的值,指定要傳回之部分結果的層級。
- callback
- AsyncCallback
AsyncCallback 函式。
傳回
IAsyncResult 物件,參考非同步傳送。
例外狀況
物件控制代碼無效。
request
是 null (在 Visual Basic 中為 Nothing
)。
不支援部分結果。
如果 partialMode
等於 ReturnPartialResultsAndNotifyCallback,則必須指定回呼函式。