This documentation is archived and is not being maintained.
.NET Framework 1.1
The methods of the ServiceController class are listed here. For a complete list of ServiceController class members, see the ServiceController Members topic.
|Close||Disconnects this ServiceController instance from the service and frees all the resources that the instance allocated.|
|Continue||Continues a service after it has been paused.|
|CreateObjRef (inherited from MarshalByRefObject)||Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.|
|Dispose (inherited from Component)||Overloaded. Releases the resources used by the Component.|
|Equals (inherited from Object)||Overloaded. Determines whether two Object instances are equal.|
|ExecuteCommand||Executes a custom command on the service.|
|GetDevices||Overloaded. Retrieves the device driver services on a computer.|
|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.|
|GetLifetimeService (inherited from MarshalByRefObject)||Retrieves the current lifetime service object that controls the lifetime policy for this instance.|
|GetServices||Overloaded. Retrieves the non-device driver services on a computer, and those that are not drivers.|
|GetType (inherited from Object)||Gets the Type of the current instance.|
|InitializeLifetimeService (inherited from MarshalByRefObject)||Obtains a lifetime service object to control the lifetime policy for this instance.|
|Pause||Suspends a service's operation.|
|Refresh||Refreshes all the property values, setting them to the current values.|
|Start||Overloaded. Starts the service.|
|Stop||Stops this service and any services that are dependent on this service.|
|ToString (inherited from Object)||Returns a String that represents the current Object.|
|WaitForStatus||Overloaded. Waits for the service to reach the specified status.|
|Dispose||Overloaded. Overridden. See Component.Dispose.|
|Finalize (inherited from Component)||Overridden. Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax.
|GetService (inherited from Component)||Returns an object that represents a service provided by the Component or by its Container.|
|MemberwiseClone (inherited from Object)||Creates a shallow copy of the current Object.|