开发者

windows service canStop property

I created a windows service in c# using Visual Studio 2010. I create the service executable in Visual Studio, then start it from nsis installer script. I n开发者_StackOverfloweed to set canStop to false but I can't find out how to do that. Please advise.


Just open the service class in the Designer (double click on the class) and in the property sheet for the class you can set CanStop to false.


you can only get the status using canStop property which is True/False. It has only a getter method(get) not the setter one.

refer canStop for detail.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜