/// <value> /// UNC账户名称属性<br/> /// 当虚拟目录指向另一台计算机上的共享时,必须设置UNC账户。 /// </value> public string UNCUsername { get { return _UNCUsername; } set { _UNCUsername = value; } } /// <value> /// UNC账户密码属性<br/> /// 当虚拟目录指向另一台计算机上的共享时,必须设置UNC账户。 /// </value> public string UNCPassword { get { return _UNCPassword; } set { _UNCPassword = value; } } /// <value> /// 读取属性<br/> /// 是否可通过IE读取文件或文件夹的内容。<br/> /// 默认为true。 /// </value> public bool AccessRead { get { return _AccessRead; } set { _AccessRead = value; } } /// <value> /// 写入属性<br/> /// 是否允许用户将文件及其相关属性上载到服务器上已启用的目录中,或者更改可写文件的内容。 /// 只有使用支持 HTTP 1.1 协议标准的 PUT 功能的浏览器,才能执行写入操作。<br/> /// 默认为false。 /// </value> public bool AccessWrite { get { return _AccessWrite; } set { _AccessWrite = value; } } /// <value> /// Web执行属性<br/> /// 是否可以执行文件或文件夹的内容。<br/> /// 默认为false。 /// </value> public bool AccessExecute { get { return _AccessExecute; } set { _AccessExecute = value; } } /// <value> /// Web脚本执行属性<br/> /// 默认值true表示如果是脚本文件或静态内容,则可以执行文件或文件夹的内容。<br/> /// 值false只允许提供静态文件,如HTML文件。 /// </value> public bool AccessScript { get { return _AccessScript; } set { _AccessScript = value; } } /// <value> /// 记录访问属性<br/> /// 是否将客户端的请求写入日志文件。<br/> /// 默认为false,即记录访问。 /// </value> public bool DontLog { get { return _DontLog; } set { _DontLog = value; } } /// <value> /// Web索引资源属性<br/> /// 指定安装的目录索引程序是否应该检索该目录树下的内容。<br/> /// 默认为true。 /// </value> public bool ContentIndexed { get { return _ContentIndexed; } set { _ContentIndexed = value; } } /// <value> /// Web目录浏览属性<br/> /// 是否启用目录浏览。<br/> /// 默认为false。 /// </value> public bool EnableDirBrowsing { get { return _EnableDirBrowsing; } set { _EnableDirBrowsing = value; } } /// <value> /// 应用程序保护属性<br/> /// 该属性指出应用程序是在进程内、进程外还是在进程池中运行。 /// 值0表示应用程序在进程内运行(低),值1表示进程外(高),值2 表示进程池(中)。<br/> /// 默认为2。 /// </value> public int AppIsolated { get { return _AppIsolated; } set { _AppIsolated = value; } } /// <summary> /// 根据路径标识符的判断是否为UNC。<br/> /// 如果以"\\"开头的是UNC网络目录,否则以盘符开头为本地物理路径。 /// </summary> public bool IsUNCShare() { if(Path.StartsWith("\\")) { return true; } else { return false; } } } 上一篇《基于DirectoryServices的IIS虚拟目录管理(1)》 下一篇《基于DirectoryServices的IIS虚拟目录管理(3)》

评论