Export (0) Print
Expand All

ServiceBase Properties

The ServiceBase type exposes the following members.

  NameDescription
Public property AutoLog Indicates whether to report Start, Stop, Pause, and Continue commands in the event log.
Public property CanHandlePowerEvent Gets or sets a value indicating whether the service can handle notifications of computer power status changes.
Public property CanHandleSessionChangeEvent Gets or sets a value that indicates whether the service can handle session change events received from a Terminal Server session.
Public property CanPauseAndContinue Gets or sets a value indicating whether the service can be paused and resumed.
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public property CanShutdown Gets or sets a value indicating whether the service should be notified when the system is shutting down.
Public property CanStop Gets or sets a value indicating whether the service can be stopped once it has started.
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public property EventLog Gets an event log you can use to write notification of service command calls, such as Start and Stop, to the Application event log.
Protected property Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property ExitCode Gets or sets the exit code for the service.
Protected property ServiceHandle Gets the service control handle for the service.
Public property ServiceName Gets or sets the short name used to identify the service to the system.
Public property Site Gets or sets the ISite of the Component. (Inherited from Component.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft