Microsoft
70-515 · Question #8
You are implementing an ASP.NET application that will use session state in out-of-proc mode. You add the following code. public class Person { public string FirstName { get; set;} public string…
The correct answer is C. Serializable. See the full explanation below for the reasoning.
Question
You are implementing an ASP.NET application that will use session state in out-of-proc mode. You add the following code. public class Person { public string FirstName { get; set;} public string LastName { get; set;} } You need to add an attribute to the Person class to ensure that you can save an instance to session state. Which attribute should you use?
Options
- ABindable
- BDataObject
- CSerializable
- DDataContract
How the community answered
(17 responses)- A12% (2)
- C82% (14)
- D6% (1)
Community Discussion
No community discussion yet for this question.