예제 #1
0
        public void ModifyWebSiteParameter(string webSiteID, WebSiteParameter param, object value)
        {
            DirectoryEntry entry = GetDirectoryEntry("/" + webSiteID);

            entry.Properties[param.ToString()].Value = value;
            entry.CommitChanges();
            DisposeDirectoryEntry(entry);
        }
예제 #2
0
        public object GetWebSiteParameter(string webSiteID, WebSiteParameter param)
        {
            object         result = null;
            DirectoryEntry entry  = GetDirectoryEntry("/" + webSiteID);

            result = entry.Properties[param.ToString()].Value;
            DisposeDirectoryEntry(entry);
            return(result);
        }
예제 #3
0
 public void ModifyWebSiteParameter(string webSiteID, WebSiteParameter param, object value)
 {
     DirectoryEntry entry = GetDirectoryEntry("/" + webSiteID);
     entry.Properties[param.ToString()].Value = value;
     entry.CommitChanges();
     DisposeDirectoryEntry(entry);
 }
예제 #4
0
 public object GetWebSiteParameter(string webSiteID, WebSiteParameter param)
 {
     object result = null;
     DirectoryEntry entry = GetDirectoryEntry("/" + webSiteID);
     result = entry.Properties[param.ToString()].Value;
     DisposeDirectoryEntry(entry);
     return result;
 }