【发布时间】:2014-04-27 05:28:36
【问题描述】:
我的代码运行良好,但我想为函数的参数变量设置一些 cmets。
$server->register(
// method name:
'getCustomerExists',
// parameter list:
array('byWhat' => 'xsd:string'),
// return value(s):
array(),
$namespace,
false,
'rpc',
'encoded',
// description: documentation for the method
'Retrieve customer by Email OR Identification Number.
@byWhat = String');
function getCustomerExists($byWhat){
return $web->getCustomerExists($byWhat);
}
对于这个测试,我使用的是 Visual C# Express。所以当我输入我的函数时,这就是弹出窗口的帮助:
除非人们阅读文档,否则他们不会知道“byWhat”是什么。
我正在寻找的是 Visual C# 在其函数中提供的参数注释。
我试过this solution 没有成功。
【问题讨论】:
标签: c# php soap comments nusoap