将数据从Windows窗体应用程序发送到Window Service [英] Send data from Windows Forms application to Window Service
本文介绍了将数据从Windows窗体应用程序发送到Window Service的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Windows窗体,用户可以在其中输入数据.此数据是一个复杂的结构,必须传递给Window Service.
I have a Windows Form where a user can enter data. This data, a complex struct, has to be communicated to a Window Service.
如何在C#中解决此问题?
How can I solve this problem in C#?
推荐答案
有四种与Windows服务进行交互的方式.
There are four ways to Interact with the windows service.
- 通过Windows注册表
- 通过WMI
- 通过命令
- 通过互操作
在这里您可以获得更多详细信息.
Here you can get more Details.
这篇关于将数据从Windows窗体应用程序发送到Window Service的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文