以后研究

       try
            {
                string method = "Recycle";
                string AppPoolName = "z.chinabett.com";
                DirectoryEntry appPool = new DirectoryEntry("IIS://localhost/W3SVC/AppPools");
                DirectoryEntry findPool = appPool.Children.Find(AppPoolName, "IIsApplicationPool");
                findPool.Invoke(method, null);
                appPool.CommitChanges();
                appPool.Close();
                string a = string.Format("回收应用程序池{0}成功", AppPoolName, method);
            }
            catch (Exception ex)
            {
                throw ex;
            }

 

相关文章:

  • 2021-08-27
  • 2022-03-08
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-17
  • 2021-11-03
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2021-12-12
  • 2021-09-04
相关资源
相似解决方案