停止
ServiceController sc = new ServiceController("iisadmin");
if(sc.Status=ServiceControllerStatus.Running)
sc.Stop();
啟動IIS服務
ServiceController sc = new ServiceController("iisadmin");
sc.Start();
重啟
using System.Diagnostics;
PRocess.Start("iisreset");
新闻热点
疑难解答