标签: c# web-services
我想以编程方式停止WebClient Service,但我没有权限。
ServiceController[] services = ServiceController.GetServices(); foreach (ServiceController service in services) { if (service.ServiceName == "WebClientService") { service.Stop(); } }