Build 1.01.318.0

[This is preliminary documentation and is subject to change.]

The ServiceManager type exposes the following members.

Methods

  NameDescription
Public methodStatic memberGetAllServices
Gets all installed Windows services.
Public methodStatic memberGetNumberOfLogicalProcessors
Gets the number of logical processors on the system.
Public methodStatic memberGetNumberOfProcessors
Gets the number of physical processors on the system.
Public methodStatic memberGetService
Gets the Service with the given name.
Public methodStatic memberGetServiceProcessorAffinity
Gets the affinity for the service with the given name.
Public methodStatic memberGetServiceStartMode
Gets the start mode of the service with the given name.
Public methodStatic memberGetServiceStatus
Gets the status of the service with the given name.
Public methodStatic memberIsServicePaused
Determine whther the service with the given name is paused.
Public methodStatic memberIsServiceRunning
Determine whther the service with the given name is running.
Public methodStatic memberIsServiceStopped
Determine whther the service with the given name is stopped.
Public methodStatic memberPauseService(String)
Pause the service with the given name. This method returns as soon as the Pause method on the service is called and does not guarantee the paused status of the service.
Public methodStatic memberPauseService(String, TimeSpan)
Pause the service with the given name and wait until the service status is paused. If the service status is not paused after the given timeout then the service is considered not paused.
Public methodStatic memberServiceExists
Gets a value whteher the service with the given name is installed.
Public methodStatic memberSetServiceProcessorAffinity
Set the processor affinity for the service with the given name.
Public methodStatic memberSetServiceStartMode
Modifies the start mode of a Windows service.
Public methodStatic memberStartService(String)
Start the service with the given name. This method returns as soon as the Start method on the service is called and does not guarantee the running status of the service. You can call this method after stop or pause the service in order to re-start it.
Public methodStatic memberStartService(String, TimeSpan)
Start the service with the given name and wait until the status of the service is running. If the service status is not running after the given timeout then the service is considered not started. You can call this method after stop or pause the service in order to re-start it.
Public methodStatic memberStopService(String)
Stop the service with the given name. This method returns as soon as the Stop method on the service is called and does not guarantee the stopped status of the service.
Public methodStatic memberStopService(String, TimeSpan)
Stop the service with the given name and wait until the service status is stopped. If the service status is not stopped after the given timeout then the service is considered not stopped.

See Also