Microsoft
70-573 · Question #192
You create a Microsoft .NET Framework console application that uses a Representational State Transfer (REST) API to query a custom list named Products. The application contains the following code…
The correct answer is D. codc.Products.ToList. See the full explanation below for the reasoning.
Question
You create a Microsoft .NET Framework console application that uses a Representational State Transfer (REST) API to query a custom list named Products. The application contains the following code segment. Dim codc As New AdventureWorksDataContext(New codc.Credentials = CredentialCache.DefaultCredentials You need to read all items in Products into an object. Which method should you use?
Options
- Acodc.Products.All
- Bcodc.Products.AsQueryable
- Ccodc.Products.ElementAt
- Dcodc.Products.ToList
How the community answered
(42 responses)- A14% (6)
- B2% (1)
- C5% (2)
- D79% (33)
Community Discussion
No community discussion yet for this question.