How can I control the name of generic WCF return types?

后端 未结 3 2089
遇见更好的自我
遇见更好的自我 2020-12-06 02:39

I\'ve got a WCF Web Service method whose prototype is:

[OperationContract]
Response> GetCustomers();

When I add

3条回答
  •  萌比男神i
    2020-12-06 03:41

    Yes. The OperationContractAttribute takes a parameter called Name. You could specify it like this:

    [OperationContract(Name = "NameGoesHere")]
    Response> GetCustomers();
    

提交回复
热议问题