在wf操作合约中传递参数

发布于 2024-10-10 07:32:43 字数 195 浏览 0 评论 0原文

我对 wf 服务非常陌生,我正在使用 4.0。我正在创建具有所有默认属性的新项目,现在的问题是如何在我的 getdata 操作合约中传递两个方法参数(默认情况下,它只接受一个) value )

我想做这样的事情

[operationcontract]

int getdata(int first,int secondary);

i am Very new with wf service,i am using 4.0.i am creating the new project with all default properties,now the problem is how can is pass two method parameters in my getdata operation contract(which is by default and it accept ony one value )

i want to do somethng like this

[operationcontract]

int getdata(int first,int second);

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疯到世界奔溃 2024-10-17 07:32:43

选择可以输入多个项目的参数(简单的方法),或者创建具有多个正文成员的 MessageContract 并在“消息”选项中使用该类型。最后一个选项功能更强大、更高级,如果您没有特殊的消息传递要求,第一个选项是更好的开始方式。

Either select Parameters where you can enter multiple items, the easy way, or create a MessageContract with multiple body members and use that type in the Message option. The last options is more capable and more advanced, the fist is the better way to start if you don't have special messaging requirements.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文