In The Hand - .NET Components for Mobility
ServiceController Class
NamespacesInTheHand.ServiceProcessServiceController
Represents a Windows CE service and allows you to connect to a running or stopped service, manipulate it, or get information about it.
Declaration Syntax
C#Visual Basic
public class ServiceController : Component, IDisposable
Public Class ServiceController _
	Inherits Component _
	Implements IDisposable
Members
All MembersConstructorsMethodsPropertiesEvents



IconMemberDescription
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)
(Overrides Component.Dispose(Boolean).)
Dispose()()()

Disposed
Adds an event handler to listen to the Disposed event on the component.
(Inherited from Component.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Events
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Finalize()()()
(Overrides 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)
Returns an object that represents a service provided by the Component or by its Container.
(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
Gets or sets the ISite of the Component.
(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.)
Inheritance Hierarchy
Object
MarshalByRefObject
 Component
  ServiceController

Assembly: InTheHand.ServiceProcess (Module: InTheHand.ServiceProcess) Version: 1.0.50819.0