프로퍼티 | 타입 | 설명 | |
---|---|---|---|
InitializeComponent | void |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 | void |
public Monitor_DeviceAdded ( object sender, DeviceEventArgs e ) : void | ||
sender | object | |
e | DeviceEventArgs | |
리턴 | void |
public Monitor_DeviceRemoved ( object sender, DeviceEventArgs e ) : void | ||
sender | object | |
e | DeviceEventArgs | |
리턴 | void |
public Monitor_DeviceStateChanged ( object sender, DeviceEventArgs e ) : void | ||
sender | object | |
e | DeviceEventArgs | |
리턴 | void |
protected OnCustomCommand ( int command ) : void | ||
command | int | The command message sent to the service. |
리턴 | void |
protected OnPowerEvent ( System powerStatus ) : bool | ||
powerStatus | System | A |
리턴 | bool |
protected OnSessionChange ( System changeDescription ) : void | ||
changeDescription | System | A |
리턴 | void |
protected OnStart ( string args ) : void | ||
args | string | Data passed by the start command. |
리턴 | void |