Esempio n. 1
0
        public object GetWebVirtualDir(string webSiteID, WebVirtualDirParameter param)
        {
            object         result = null;
            DirectoryEntry entry  = GetWebSiteIDDirectoryEntry(webSiteID);

            foreach (DirectoryEntry appent in entry.Children)
            {
                if (appent.Name == "root")
                {
                    result = appent.Properties[param.ToString()].Value;
                    DisposeDirectoryEntry(entry);
                    return(result);
                }
            }
            return(result);
        }
Esempio n. 2
0
        public void ModifyWebVirtualDir(string webSiteID, WebVirtualDirParameter param, object value)
        {
            DirectoryEntry entry = GetWebSiteIDDirectoryEntry(webSiteID);

            foreach (DirectoryEntry appent in entry.Children)
            {
                if (appent.Name == "root")
                {
                    appent.Properties[param.ToString()].Value = value;
                    appent.CommitChanges();
                    DisposeDirectoryEntry(entry);
                    return;
                }
            }
            DisposeDirectoryEntry(entry);
        }
Esempio n. 3
0
 public void ModifyWebVirtualDir(string webSiteID, WebVirtualDirParameter param, object value)
 {
     DirectoryEntry entry = GetWebSiteIDDirectoryEntry(webSiteID);
     foreach (DirectoryEntry appent in entry.Children)
     {
         if (appent.Name == "root")
         {
             appent.Properties[param.ToString()].Value = value;
             appent.CommitChanges();
             DisposeDirectoryEntry(entry);
             return;
         }
     }
     DisposeDirectoryEntry(entry);
 }
Esempio n. 4
0
 public object GetWebVirtualDir(string webSiteID, WebVirtualDirParameter param)
 {
     object result = null;
     DirectoryEntry entry = GetWebSiteIDDirectoryEntry(webSiteID);
     foreach (DirectoryEntry appent in entry.Children)
     {
         if (appent.Name == "root")
         {
             result = appent.Properties[param.ToString()].Value;
             DisposeDirectoryEntry(entry);
             return result;
         }
     }
     return result;
 }