private InitializeComponent ( string serviceName ) : void | ||
serviceName | string | 服务的名字 |
return | void |
private void InitializeComponent(string serviceName)
{
// Initialize the operating properties for the service.
this.CanPauseAndContinue = false;
this.CanShutdown = true;
this.CanHandleSessionChangeEvent = true;
this.ServiceName = serviceName;
}