ServiceController


The ServiceController component represents a Windows service process. It provides methods that let you connect to a running or stopped service to control it or get information about it.

The ServiceController component’s ServiceName property gets or sets the name of the service associated with the component. To set this value at design time, select a ServiceController in the form designer. Then, click the ServiceName property in the Properties window and click the drop-down arrow on the right to see a list of available services on the system. The class’s methods let you start, pause, continue, or stop the service.

Windows services and their control is a relatively advanced topic, so it is not covered in detail here. For more information, see the ServiceController class’s web page at msdn.microsoft.com/library/ en-us/cpref/html/frlrfsystemserviceprocessservicecontrollerclasstopic.asp. For an introduction to Windows service applications, refer to msdn.microsoft.com/library/en-us/vbcon/ html/vbconintroductiontontserviceapplications.asp. For a walkthrough that creates a Windows service application, see msdn.microsoft.com/library/en-us/vbcon/html/ vbwlkwalkthrough?creatingwindowsserviceapplication.asp.




Visual Basic 2005 with  .NET 3.0 Programmer's Reference
Visual Basic 2005 with .NET 3.0 Programmer's Reference
ISBN: 470137053
EAN: N/A
Year: 2007
Pages: 417

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net