【发布时间】:2014-06-05 07:24:15
【问题描述】:
考虑代码
[WebInvoke(UriTemplate="/{memId}/{username}")]
[ServiceContract]
void Method(string strMemId,string strUname)
{
// my code goes here
}
UriTemplate 中的参数是否与方法参数相同? 如果没有,什么时候需要/需要它们?
谢谢。 任何意见表示赞赏。
【问题讨论】:
标签: c# wcf c#-4.0 uritemplate