【发布时间】:2020-05-23 12:25:50
【问题描述】:
我创建了以下网络服务
> [WebMethod(EnableSession = true)]
>
> public Transaction<Employee> GetEmployee(string Fname, string Lname, int eid)
> {
>
> return _service.GetEmployee(Fname, Lname, apartmentTypeId, eid);
> }
我想将最后一个参数设为可选。目前,我不是 提交开斋节,它给出了一个错误。我怎样才能做最后一个 此服务中的参数可选?
【问题讨论】:
标签: c# api web-services asmx