This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
ServiceController Members
Public:
Constructor
Properties
CanPauseAndContinue |
Tells if the service referenced by this object can be paused. |
CanShutdown |
Tells if the service is notified when system shutdown occurs. |
CanStop |
Tells if the service referenced by this object can be stopped. |
DependentServices |
The set of services that depend on this service. These are the services that will be stopped if this service is stopped. |
DisplayName |
The descriptive name shown for this service in the Service applet. |
MachineName |
The name of the machine on which this service resides. |
ServiceName |
Returns the short name of the service referenced by this object. |
ServicesDependedOn |
[To be supplied.] |
ServiceType |
Gets the type of service that this object references. |
Site (inherited from Component) |
Gets or sets the site of the Component. |
Status |
Gets the status of the service referenced by this object, e.g., Running, Stopped, etc. |
Methods
Close |
Disconnects this object from the service and frees any allocated resources. |
Continue |
Continues a service after it has been paused. |
Dispose |
[To be supplied.] |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
ExecuteCommand |
Executes a custom command on a Service |
GetContainer (inherited from Component) |
Returns the IContainer that contains the Component. |
GetDesignMode (inherited from Component) |
Gets a value indicating whether the Component is currently in design mode. |
GetDevices |
Overloaded. [To be supplied.] |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetServiceObject (inherited from Component) |
Returns an object representing a service provided by the Component. |
GetServices |
Overloaded. [To be supplied.] |
GetType (inherited from Object) |
Gets the Type of the Object. |
Pause |
Suspends a service's operation. |
Refresh |
Refreshes all property values. |
Start |
Overloaded. [To be supplied.] |
Stop |
Stops the service. If any other services depend on this one for operation, they will be stopped first. The DependentServices property lists this set of services. |
ToString (inherited from Component) |
Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only. |
Protected:
Methods
Finalize (inherited from Component) |
[To be supplied.] |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
ServiceController Class | System.ServiceProcess Namespace