Microsoft
70-513 · Question #219
70-513 Question #219: Real Exam Question with Answer & Explanation
Sign in or unlock 70-513 to reveal the answer and full explanation for question #219. The question stem and answer options stay visible for context.
Question
You are developing a Windows Communication Foundation (WCF) service that contains the following service contract. <ServiceContract() > Public Interface IPaymentService <OperationContract() > Sub RecordPayments(ByVal person As Person) End Interface Public Class Person End Class Public Class Employee Inherits Person End Class Public Class Customer Inherits Person End Class You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object. What should you do?
Options
- AAdd the following KnownType attribute to the Employee class and to the Customer class.
- BImplement the IExtensibleDataObject interface in the Person class.
- CImplement the IExtension(Of T) interface in the Person class.
- DAdd the following KnownType attributes to the Person class.
Unlock 70-513 to see the answer
You've previewed enough free 70-513 questions. Unlock 70-513 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.