Exit 70-513 TS: Windows Communication Foundation velopment with Microsoft .NET Framework 4
Question 1 of 5
0% complete
Q1 Single choice

You are developing a Windows Communication Foundation (WCF) service that contains the following operation contract.

<OperationContract()>

Function GetCustomerNames() As CustomerNames

The operation returns customer names.

You need to develop a definition for the operation contract that produces XML with the following structure.

Which code segment should you use

  • A

    <MessageContract(IsWrapped:=False)>
    Public Class CustomerNames

  • B

    <MessageBodyMember()>
    Public Names() As String
    End Class

  • C

    <MessageContract(WrapperName:="")>
    Public Class CustomerNames

  • D

    <MessageBodyMember()>
    Public Names() As String
    End Class

  • E

    <DataContract()>
    Public Class CustomerNames
    <DataMember ()>
    Public Names () As String
    End Class

  • F

    <DataContract()>
    Public Class CustomerNames
    <DataMember(IsRequired:=False)>
    Public Names() As String

    End Class

Previous Next