问题描述
我知道WSE已经老了,但我还是要用它。我收到此错误:错误 11 'WeldPointClient.localhost.Service'不包含'SetPolicy'的定义 E:\ WeldPointClient \ WeldPointClient \Form1.cs 35 18 WeldPointClient
I know that WSE is old but I still have to use it. I get this error: Error 11 'WeldPointClient.localhost.Service' does not contain a definition for 'SetPolicy' E:\WeldPointClient\WeldPointClient\Form1.cs 35 18 WeldPointClient
推荐答案
你可以在WCF中实现System.Collections.Generic
非常好示例显示在下面的链接中:
You can implement System.Collections.Generic, in WCF
Very nice example shown in below link :
创建了EmployeeService,其中包含"using System.Collections.Generic"的添加引用;&
您可以包括如下方法:
public List< Employee> GetLstEmployees();
Created EmployeeService, which is having in that Add reference of "using System.Collections.Generic;"
You can include the method like below :
public List<Employee> GetLstEmployees();
在服务参考设置中别忘了去添加引用
"使用System.Collections.Generic .List;"
In Service Reference Setting Dont forget go add the reference
of "using System.Collections.Generic.List;"
这些是基于上述文章的最佳发现
我希望这些信息对您有所帮助。
These are the best finding based on the Articles mentioned above
I hope this information will be helpful for you.
问候,
RajeshS。
Regards,
RajeshS.
这篇关于WSE 3.0不包含定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!