多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

A Windows Communication Foundation (WCF) service is generating a separate namespace declaration for each body member of a message contract,even though all body members share the same namespace. You need to simplify the XML representation of your message contract so that the namespace is only declared once. What should you do?()

  • A、Declare a wrapper namespace for the message contract by using the WrapperNamespace property of the MessageContract attribute
  • B、Explicitly set the Namespace property of all the MessageBodyMember attrbutes to the same namespace.
  • C、Declare all of the body members as properties of a DataContract class and use the class as the only body member of the message contract.
  • D、Declare all of the body members as properties of a separate MessageContract class and use the class as the only body member of the message contract.
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题