You’ve created a new class in your .NET project that contains a wide variety of operations grouped together to form part of a Server Contract. You now need to add an attribute to the class to define it as a service contract. Which attribute should you use?
A. OperationContractAttribute
B. DataMemberAttribute
C. DataContractAttribute
D. ServiceContractAttribute
Answer:D
You’ve created a new class in your .NET project that contains a wide variety of operations grouped together to form part of a Server Contract. You now need to add an attribute to the class to define it as a service contract. Which attribute should you use?
A. OperationContractAttribute B. DataMemberAttribute C. DataContractAttribute D. ServiceContractAttribute