







Task that can control a Windows service.
The following tables list the members exposed by ServiceController.
Public Constructors
Name | Description | |
---|---|---|
![]() |
ServiceController | Initializes a new instance of the |
Public Properties
Name | Description | |
---|---|---|
![]() |
Action | Gets or sets the |
![]() |
BuildEngine | Gets or sets the instance of the |
![]() |
CanPauseAndContinue | Gets a value indicating whether the service can be paused and resumed. (inherited from ServiceQuery) |
![]() |
CanShutdown | Gets a value indicating whether the service should be notified when the system is shutting down. (inherited from ServiceQuery) |
![]() |
CanStop | Gets a value indicating whether the service can be stopped after it has started. (inherited from ServiceQuery) |
![]() |
DisplayName | Gets a friendly name for the service. (inherited from ServiceQuery) |
![]() |
Exists | Gets a value indicating whether the service exists. (inherited from ServiceQuery) |
![]() |
HostObject | Gets or sets the host object associated with the task. (inherited from Task) |
![]() |
Log | Gets an instance of a |
![]() |
MachineName | Gets or sets the name of the machine. (inherited from ServiceQuery) |
![]() |
ServiceName | Gets or sets the name of the service. (inherited from ServiceQuery) |
![]() |
Status | Gets or sets the status. (inherited from ServiceQuery) |
![]() |
Timeout | Gets or sets the timeout for the command. The default is one minute. |
Protected Properties
Name | Description | |
---|---|---|
![]() |
HelpKeywordPrefix | Gets or sets the prefix used to compose Help keywords from resource names. (inherited from Task) |
![]() |
TaskResources | Gets or sets the culture-specific resources associated with the task. (inherited from Task) |
Public Methods
Name | Description | |
---|---|---|
![]() |
Equals | Determines whether the specified |
![]() |
Execute | Overidden. Executes the task. |
![]() |
GetHashCode | Serves as a hash function for a particular type. |
![]() |
GetType | Gets the |
![]() |
ToString | Returns a |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | Allows an |
![]() |
GetServiceController | Gets the service controller. (inherited from ServiceQuery) |
![]() |
MemberwiseClone | Creates a shallow copy of the current |
See Also
Documentation version 1.0.0.0.