This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
ServiceController Methods
The methods of the ServiceController class are listed below. For a complete list of ServiceController class members, see the ServiceController Members topic.
Public:
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:
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