您现在的位置是:首页 >

aspnet项目开发教程 ASP.NET入门教程 12.3.4 Web方法[3]

火烧 2023-04-07 01:12:24 1070
ASP.NET入门教程 12.3.4 We 方法[3] 在C#中 可以指定多个属性如下 [We Method De cri tio = A we ervice that ay hello to you

ASP.NET入门教程 12.3.4 Web方法[3]  

    在C#中 可以指定多个属性如下

 

 [WebMethod(Description= A web service that says hello to you CacheDuration= )]

    Public string Hello (string strName)

         {

        

         }

    在图 中 可以看到向Web方法添加描述的效果 文本显示在Web服务的后面 从而在Web服务的列表中 将能够区分每个Web服务

    关于WebMethod属性的更多信息 可查看//msdn microsoft /library/default asp?url=/library/en us/cpref//frlrfsystemwebserviceswebmethodattributememberstopic asp

aspnet项目开发教程 ASP.NET入门教程 12.3.4 Web方法[3]

   ASP NET 入门教程完整版

lishixinzhi/Article/program/net/201311/14858  
永远跟党走
  • 如果你觉得本站很棒,可以通过扫码支付打赏哦!

    • 微信收款码
    • 支付宝收款码