ServiceController Methods

 

Namespace:   System.ServiceProcess
Assembly:  System.ServiceProcess (in System.ServiceProcess.dll)

NameDescription
System_CAPS_pubmethodClose()

Disconnects this ServiceController instance from the service and frees all the resources that the instance allocated.

System_CAPS_pubmethodContinue()

Continues a service after it has been paused.

System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodDispose()

Releases all resources used by the Component.(Inherited from Component.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the ServiceController and optionally releases the managed resources. (Overrides Component.Dispose(Boolean).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodExecuteCommand(Int32)

Executes a custom command on the service.

System_CAPS_protmethodFinalize()

Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.(Inherited from Component.)

System_CAPS_pubmethodSystem_CAPS_staticGetDevices()

Retrieves the device driver services on the local computer.

System_CAPS_pubmethodSystem_CAPS_staticGetDevices(String)

Retrieves the device driver services on the specified computer.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_protmethodGetService(Type)

Returns an object that represents a service provided by the Component or by its Container.(Inherited from Component.)

System_CAPS_pubmethodSystem_CAPS_staticGetServices()

Retrieves all the services on the local computer, except for the device driver services.

System_CAPS_pubmethodSystem_CAPS_staticGetServices(String)

Retrieves all the services on the specified computer, except for the device driver services.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodPause()

Suspends a service's operation.

System_CAPS_pubmethodRefresh()

Refreshes property values by resetting the properties to their current values.

System_CAPS_pubmethodStart()

Starts the service, passing no arguments.

System_CAPS_pubmethodStart(String[])

Starts a service, passing the specified arguments.

System_CAPS_pubmethodStop()

Stops this service and any services that are dependent on this service.

System_CAPS_pubmethodToString()

Returns a String containing the name of the Component, if any. This method should not be overridden.(Inherited from Component.)

System_CAPS_pubmethodWaitForStatus(ServiceControllerStatus)

Infinitely waits for the service to reach the specified status.

System_CAPS_pubmethodWaitForStatus(ServiceControllerStatus, TimeSpan)

Waits for the service to reach the specified status or for the specified time-out to expire.

Return to top
Show: