GSF.ServiceProcess.ServiceHelper.RemoveProcess C# (CSharp) 메소드

RemoveProcess() 공개 메소드

Removes an existing ServiceProcess from the ServiceHelper.
public RemoveProcess ( string processName ) : bool
processName string Name of the to be removed.
리턴 bool
        public bool RemoveProcess(string processName)
        {
            ServiceProcess process = FindProcess(processName.Trim());

            if ((object)process == null)
                return false;

            process.StateChanged -= Process_StateChanged;

            lock (m_processes)
            {
                m_processes.Remove(process);
            }

            return true;
        }
ServiceHelper