tailieunhanh - Assembly Language: Step-by-Step - chapter 16

Tham khảo tài liệu 'assembly language: step-by-step - chapter 16', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 688 Chapter 16 example in the case of the Render Text method the URL to the image is required before the page can be rendered properly so the code could be set up to wait for a returned value at the last possible moment which would be in the PreRender method of the Web page. This allows the rest of the page processing to be accomplished while the BeginRenderText Web method is being executed. When calling the Begin method the return value will be a WebClientAsync-Result data type that implements the IAsyncResult interface. To get the original return value from the Web method the End method can be used. The IAsyncResult contains the following members AsyncState. The object that was provided in the last parameter to the Begin method call. This is useful for passing an object from the Begin to the End method. This object is not required. AsyncWaitHandle. This WaitHandle type can be used to wait for an asynchronous operation to complete. The WaitAll WaitAny or WaitOne methods of the WaitHandle may be executed to block the current thread until this method has completed. CompletedSynchronously. This value indicates whether the Begin call completed synchronously or not. IsCompleted. This value indicates whether the asynchronous method has completed. Abort. In addition to the members that IAsyncResult provides the Web-ClientAsyncResult also contains the Abort method. The return value must cast as a WebClientAsyncResult using the CType command to execute this method. The Abort method cancels an asynchronous XML Web service request. The following code is an example of asynchronously executing the RenderText method Dim RenderResult As lAsyncResult RenderResult _ Regular 36 Impact My Home Page LightBlue Blue _ Nothing Nothing Do some work . RenderResult In this example the BeginRenderText method requires the same parameters as the RenderText method plus an additional parameter for a callback

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.