This documentation is archived and is not being maintained.

ServiceBase Properties

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

Public Properties

public propertyAutoLog Indicates whether to report Start, Stop, Pause, and Continue commands in the event log.
public propertyCanHandlePowerEvent Gets or sets a value indicating whether the service can handle notifications of computer power status changes.
public propertyCanPauseAndContinue Gets or sets a value indicating whether the service can be paused and resumed.
public propertyCanShutdown Gets or sets a value indicating whether the service should be notified when the system is shutting down.
public propertyCanStop Gets or sets a value indicating whether the service can be stopped once it has started.
public propertyContainer (inherited from Component) Gets the IContainer that contains the Component.
public propertyEventLog Gets an event log you can use to write notification of service command calls, such as Start and Stop, to the Application event log.
public propertyServiceName Gets or sets the short name used to identify the service to the system.
public propertySite (inherited from Component) Gets or sets the ISite of the Component.

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

ServiceBase Class | System.ServiceProcess Namespace

Show: