This documentation is archived and is not being maintained.
ServiceBase Properties
Visual Studio 2010
The ServiceBase type exposes the following members.
| Name | Description | |
|---|---|---|
|
AutoLog | Indicates whether to report Start, Stop, Pause, and Continue commands in the event log. |
|
CanHandlePowerEvent | Gets or sets a value indicating whether the service can handle notifications of computer power status changes. |
|
CanHandleSessionChangeEvent | Gets or sets a value that indicates whether the service can handle session change events received from a Terminal Server session. |
|
CanPauseAndContinue | Gets or sets a value indicating whether the service can be paused and resumed. |
|
CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component.) |
|
CanShutdown | Gets or sets a value indicating whether the service should be notified when the system is shutting down. |
|
CanStop | Gets or sets a value indicating whether the service can be stopped once it has started. |
|
Container | Gets the IContainer that contains the Component. (Inherited from Component.) |
|
DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.) |
|
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. |
|
Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) |
|
ExitCode | Gets or sets the exit code for the service. |
|
ServiceHandle | Gets the service control handle for the service. |
|
ServiceName | Gets or sets the short name used to identify the service to the system. |
|
Site | Gets or sets the ISite of the Component. (Inherited from Component.) |
Show: