Beispiel #1
0
        public void ModifyAppPoolParameter(string AppPoolName, AppPoolParameter param, object value)
        {
            DirectoryEntry entry = GetDirectoryEntry("/AppPools/" + AppPoolName);

            entry.Properties[param.ToString()].Value = value;
            entry.CommitChanges();
            DisposeDirectoryEntry(entry);
        }
Beispiel #2
0
        public object GetAppPoolParameter(string AppPoolName, AppPoolParameter param)
        {
            object         result = null;
            DirectoryEntry entry  = GetDirectoryEntry("/AppPools/" + AppPoolName);

            result = entry.Properties[param.ToString()].Value;
            DisposeDirectoryEntry(entry);
            return(result);
        }
 public void ModifyAppPoolParameter(string AppPoolName, AppPoolParameter param, object value)
 {
     DirectoryEntry entry = GetDirectoryEntry("/AppPools/" + AppPoolName);
     entry.Properties[param.ToString()].Value = value;
     entry.CommitChanges();
     DisposeDirectoryEntry(entry);
 }
 public object GetAppPoolParameter(string AppPoolName, AppPoolParameter param)
 {
     object result = null;
     DirectoryEntry entry = GetDirectoryEntry("/AppPools/" + AppPoolName);
     result = entry.Properties[param.ToString()].Value;
     DisposeDirectoryEntry(entry);
     return result;
 }