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.
精彩评论