Represents a Windows CE service and allows you to connect to a running or stopped service, manipulate it, or get information about it.
| C# | Visual Basic |
public class ServiceController : Component, IDisposable
Public Class ServiceController _ Inherits Component _ Implements IDisposable
| All Members | Constructors | Methods | Properties | Events | |
| Icon | Member | Description |
|---|---|---|
| ServiceController()()() |
Initializes a new instance of the ServiceController class that is not associated with a specific service.
| |
| ServiceController(String) |
Initializes a new instance of the ServiceController class that is associated with an existing service on the local device.
| |
| Close()()() |
Disconnects this ServiceController instance from the service and frees all the resources that the instance allocated.
| |
| Container | Gets the IContainer that contains the Component. (Inherited from Component.) | |
| DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.) | |
| Dispose(Boolean) | ||
| Dispose()()() | ||
| Disposed | Adds an event handler to listen to the Disposed event on the component. (Inherited from Component.) | |
| Equals(Object) | (Inherited from Object.) | |
| Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) | |
| Finalize()()() | ||
| GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetService(Type) | (Inherited from Component.) | |
| GetServices()()() |
Retrieves all the services on the local computer, except for the device driver services.
| |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ServiceName |
Gets or sets the name that identifies the service that this instance references.
| |
| ServiceType |
Gets the type of service that this object references.
| |
| Site | (Inherited from Component.) | |
| Start()()() |
Starts the service.
| |
| Status |
Gets the status of the service that is referenced by this instance.
| |
| Stop()()() |
Stops this service.
| |
| ToString()()() | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
| Object | |||
| MarshalByRefObject | |||
| Component | |||
| ServiceController | |||