PrepAway - Latest Free Exam Questions & Answers

How should you complete the relevant code?

DRAG DROP
You are developing an application that will include a method named GetData. The GetData()
method will retrieve several lines of data from a web service by using a
System.IO.StreamReader object.
You have the following requirements:
The GetData() method must return a string value that contains the entire response from the
web service.

The application must remain responsive while the GetData() method runs.
You need to implement the GetData() method.
How should you complete the relevant code? (To answer, drag the appropriate objects to the
correct locations in the answer area. Each object may be used once, more than once, or not
at all. You may need to drag the split bar between panes or scroll to view content.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

8 Comments on “How should you complete the relevant code?

  1. Dante says:

    This is similar to Question 28 of the Briefing Microsoft Knowledge 70-483, only difference is “The GetData() method must return a string value that contains the FIRST LINE of the response from the webservice” -> in this situation correct answer is ReadLineAsync(), cause this reads a line of characters asynchronously and returns the data as a string.




    2



    0

Leave a Reply