如何在Windows服务中添加方法? [英] how to add a method in Windows services?

查看:97
本文介绍了如何在Windows服务中添加方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个Windows服务,现在我想添加一个方法,以便它发送一个与数据库调用相对应的邮件或消息....任何人都可以帮助这个???

Hi,,I had developed a windows service and now i want to add a method so that it sends a mail or message with respective to the database call....can any one help this???

推荐答案

您好,



右键单击您的Web应用程序

然后添加新的项目

然后选择网络服务

输入您的网络服务的名称



默认为 WebService1.asmx

visual studio将自动为您创建一个

Web服务代码模板。 br />


您可以在创建的Web服务中添加尽可能多的WebMethod。





希望这可以提供帮助。



不要忘记投票,如果有帮助的话。最高投票是5.



问候,
Hi,

Right click in your Web application
then Add New Item
then Select Web Service
Type the name of your web service

The default is WebService1.asmx
The visual studio will automatically create a
Web service code template for you.

You may add as many WebMethod in your created Webservice.


Hope this could help.

Do not forget to vote if could help. The highest vote is 5.

Regards,


这篇关于如何在Windows服务中添加方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆