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); }
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; }