visual-studio Visual Studio Wcf 测试客户端 - 输入一个 Int 数组
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2743166/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual Studio Wcf Test Client - entering an Int array
提问by WebDude
I've found the Visual Studio WCF test client quite useful when it comes to a quick test of my WCF service. This is the test client found in this location relative to your Visual Studio install directory:
我发现 Visual Studio WCF 测试客户端在快速测试我的 WCF 服务时非常有用。这是在相对于 Visual Studio 安装目录的位置中找到的测试客户端:
\Common7\IDE\WcfTestClient.exe
\Common7\IDE\WcfTestClient.exe
I have a few service calls that require a parameter of type System.Int32[]
I can't seem to figure out what values to enter against for this parameter as i keep receiving the error
我有几个服务调用需要 System.Int32[] 类型的参数
我似乎无法弄清楚要为此参数输入哪些值,因为我一直收到错误
'[value entered]' is not a valid value for this type
“[输入的值]”不是此类型的有效值
Trying to enter the value 27 i have tried the following, but all fails
尝试输入值 27 我尝试了以下操作,但都失败了
27
{ 27 }
new System.Int32[] { 27 }
27
{ 27 }
新 System.Int32[] { 27 }
Can anyone please help with how to do this
任何人都可以请帮助如何做到这一点
回答by Darin Dimitrov
Type length=1in the Valuecolumn, a ?will appear allowing you to add values in the array:
length=1在Value列中键入,?将出现允许您在数组中添加值:



