Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ServiceController Methods

The ServiceController type exposes the following members.

  NameDescription
Public method Close Disconnects this ServiceController instance from the service and frees all the resources that the instance allocated.
Public method Continue Continues a service after it has been paused.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose Overloaded.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method ExecuteCommand Executes a custom command on the service.
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method Static member GetDevices Overloaded. Retrieves the device driver services on a computer.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method Static member GetServices Overloaded. Retrieves the non-device driver services on a computer, and those that are not drivers.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone Overloaded.
Public method Pause Suspends a service's operation.
Public method Refresh Refreshes property values by resetting the properties to their current values.
Public method Start Overloaded. Starts the service.
Public method Stop Stops this service and any services that are dependent on this service.
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Public method WaitForStatus Overloaded. Waits for the service to reach the specified status.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.