Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ServiceBase Properties

(see also Protected Properties )
  Name Description
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.
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.)
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.
Public property ExitCode Gets or sets the exit code 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
  Name Description
Protected property CanRaiseEvents  Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Protected property DesignMode  Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected property Events  Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Protected property ServiceHandle Gets the service control handle for the service.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.