What should you do to ensure that the application completes the upload efficiently?

You are creating a Windows component by using the .NET Framework 3.5.
The component will be used in Microsoft Word 2007 by using a ribbon button.
The component uploads large files to a network file share. You find that Word 2007 becomes non-responsive during the upload.
You plan to create your own thread to execute the upload. You need to ensure that the application completes the upload efficiently.
What should you do?

You are creating a Windows component by using the .NET Framework 3.5.
The component will be used in Microsoft Word 2007 by using a ribbon button.
The component uploads large files to a network file share. You find that Word 2007 becomes non-responsive during the upload.
You plan to create your own thread to execute the upload. You need to ensure that the application completes the upload efficiently.
What should you do?

A.
Use the AsyncResult.SyncProcessMessage method.

B.
Call the BeginInvoke method, perform the upload, and then call the EndInvoke method.

C.
Retrieve a WaitHandle from an implementation of the IAsyncResult interface before the upload.

D.
Set the IsCompleted property on an implementation of the IAsyncResult interface before the upload.



Leave a Reply 0

Your email address will not be published. Required fields are marked *