This documentation is archived and is not being maintained.

ServiceController Properties

The properties of the ServiceController class are listed here. For a complete list of ServiceController class members, see the ServiceController Members topic.

Public Properties

public propertyCanPauseAndContinue Gets a value indicating whether the service can be paused and resumed.
public propertyCanShutdown Gets a value indicating whether the service should be notified when the system is shutting down.
public propertyCanStop Gets a value indicating whether the service can be stopped after it has started.
public propertyContainer (inherited from Component) Gets the IContainer that contains the Component.
public propertyDependentServices Gets the set of services that depends on the service associated with this ServiceController instance.
public propertyDisplayName Gets or sets a friendly name for the service.
public propertyMachineName Gets or sets the name of the computer on which this service resides.
public propertyServiceName Gets or sets the name that identifies the service that this instance references.
public propertyServicesDependedOn The set of services that this service depends on.
public propertyServiceType Gets the type of service that this object references.
public propertySite (inherited from Component) Gets or sets the ISite of the Component.
public propertyStatus Gets the status of the service that is referenced by this instance.

Protected Properties

protected propertyDesignMode (inherited from Component) Gets a value that indicates whether the Component is currently in design mode.
protected propertyEvents (inherited from Component) Gets the list of event handlers that are attached to this Component.

See Also

ServiceController Class | System.ServiceProcess Namespace