}
   ///<summary>
   ///定义属性,IISVirtualDir太多属性了
   ///我只搞了比较重要的一些,其它的大伙需要的自个加吧。
   ///</summary>
  
   public int flag
   {
   get{ return _flag;}
   set{ _flag = value;}
   }
   public bool AccessRead
   {
   get{ return _read;}
   set{ _read = value;}
   }
   public bool AccessWrite
   {
   get{ return _write;}
   set{ _write = value;}
   }
   public bool AccessExecute
   {
   get{ return _execute;}
   set{ _execute = value;}
   }
   public bool AccessSSL
   {
   get{ return _ssl;}
   set{ _ssl = value;}
   }
   public bool AccessScript
   {
   get{ return _script;}
   set{ _script = value;}
   }
   public bool AuthBasic
   {
   get{ return _authbasic;}
   set{ _authbasic = value;}
   }
   public bool AuthNTLM
   {
   get{ return _authntlm;}
   set{ _authntlm = value;}
   }
   public bool ContentIndexed
   {
   get{ return _indexed;}
   set{ _indexed = value;}
   }
   public bool EnableDirBrowsing
   {
   get{ return _endirbrow;}
   set{ _endirbrow = value;}
   }
   public bool EnableDefaultDoc
   {
   get{ return _endefaultdoc;}
   set{ _endefaultdoc = value;}
   }
   public string Name
   {
   get{ return _name;}
   set{ _name = value;}
   }
   public string Path
   {
   get{ return _path;}
   set{ _path = value;}
   }
   public string DefaultDoc
   {
   get{ return _defaultdoc;}
   set{ _defaultdoc = value;}
   }
   public string AnonymousUserName
   {
   get{ return _ausername;}
   set{ _ausername = value;}
   }
   public string AnonymousUserPass
   {
   get{ return _auserpass;}
   set{ _auserpass = value;}
   }
  }
  /// <summary>
  /// 集合VirtualDirectories
  /// </summary>
  
  public class VirtualDirectories : System.Collections.Hashtable
  {
   public VirtualDirectories()
   {
   }
   //添加新的方法
   public VirtualDirectory Find(string strName)
   {
   return (VirtualDirectory)this[strName];
   }
  }
  }

相关文章:

  • 2022-02-07
  • 2022-02-02
  • 2021-07-28
  • 2021-12-14
  • 2022-12-23
猜你喜欢
  • 2021-08-22
  • 2021-06-29
  • 2021-06-19
相关资源
相似解决方案