如何返回List< dynamic>来自WCF服务 [英] How to return List<dynamic> from WCF Service

查看:83
本文介绍了如何返回List< dynamic>来自WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试返回列表时收到504错误消息< dynamic>



我的界面看起来像



I receive 504 error message when i try to return List<dynamic>

my Interface looks like

[WebGet(UriTemplate = "Get_All_Result", ResponseFormat = WebMessageFormat.Json)]
[OperationContract]
List<dynamic> Get_All_Result();

推荐答案

Public Function <functionname>(<parameters>)as List(of object) implements <interface>        

    End Function</interface></parameters></functionname>







希望这有帮助

接口也必须返回相同的List


Hope this helps
Interface must also return the same List


这篇关于如何返回List&lt; dynamic&gt;来自WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆