Свойство | Type | Description | |
---|---|---|---|
InitializeComponent | void |
Méthode | Description | |
---|---|---|
DeviceService ( ) : System |
Initializes a new instance of the Service class.
|
|
Monitor_DeviceAdded ( object sender, DeviceEventArgs e ) : void | ||
Monitor_DeviceRemoved ( object sender, DeviceEventArgs e ) : void | ||
Monitor_DeviceStateChanged ( object sender, DeviceEventArgs e ) : void |
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes of the resources (other than memory) used by the T:System.ServiceProcess.ServiceBase.
|
|
OnContinue ( ) : void |
When implemented in a derived class, M:System.ServiceProcess.ServiceBase.OnContinue runs when a Continue command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service resumes normal functioning after being paused.
|
|
OnCustomCommand ( int command ) : void |
When implemented in a derived class, M:System.ServiceProcess.ServiceBase.OnCustomCommand(System.Int32) executes when the Service Control Manager (SCM) passes a custom command to the service. Specifies actions to take when a command with the specified parameter value occurs.
|
|
OnPause ( ) : void |
When implemented in a derived class, executes when a Pause command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service pauses.
|
|
OnPowerEvent ( System powerStatus ) : bool |
When implemented in a derived class, executes when the computer's power status has changed. This applies to laptop computers when they go into suspended mode, which is not the same as a system shutdown.
|
|
OnSessionChange ( System changeDescription ) : void |
Executes when a change event is received from a Terminal Server session.
|
|
OnShutdown ( ) : void |
When implemented in a derived class, executes when the system is shutting down. Specifies what should occur immediately prior to the system shutting down.
|
|
OnStart ( string args ) : void |
When implemented in a derived class, executes when a Start command is sent to the service by the Service Control Manager (SCM) or when the operating system starts (for a service that starts automatically). Specifies actions to take when the service starts.
|
|
OnStop ( ) : void |
When implemented in a derived class, executes when a Stop command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service stops running.
|
Méthode | Description | |
---|---|---|
InitializeComponent ( ) : void |
Initializes the component.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Résultat | void |
public Monitor_DeviceAdded ( object sender, DeviceEventArgs e ) : void | ||
sender | object | |
e | DeviceEventArgs | |
Résultat | void |
public Monitor_DeviceRemoved ( object sender, DeviceEventArgs e ) : void | ||
sender | object | |
e | DeviceEventArgs | |
Résultat | void |
public Monitor_DeviceStateChanged ( object sender, DeviceEventArgs e ) : void | ||
sender | object | |
e | DeviceEventArgs | |
Résultat | void |
protected OnCustomCommand ( int command ) : void | ||
command | int | The command message sent to the service. |
Résultat | void |
protected OnPowerEvent ( System powerStatus ) : bool | ||
powerStatus | System | A |
Résultat | bool |
protected OnSessionChange ( System changeDescription ) : void | ||
changeDescription | System | A |
Résultat | void |
protected OnStart ( string args ) : void | ||
args | string | Data passed by the start command. |
Résultat | void |