当前位置首页 > IIS知识

.Net中如何操作IIS(源代码)

阅读次数:326 次  来源:admin  发布时间:

}

///<summary>

///定义属性,IISVirtualDir太多属性了

///我只搞了比较重要的一些,其它的大伙需要的自个加吧。

///</summary>

ublic int flag

{

get{ return _flag;}

et{ _flag = value;}

}

ublic bool AccessRead

{

get{ return _read;}

et{ _read = value;}

}

ublic bool AccessWrite

{

get{ return _write;}

et{ _write = value;}

}

ublic bool AccessExecute

{

get{ return _execute;}

et{ _execute = value;}

}

ublic bool AccessSSL

{

get{ return _ssl;}

et{ _ssl = value;}

}

ublic bool AccessScript

{

get{ return _script;}

et{ _script = value;}

}

ublic bool AuthBasic

{

get{ return _authbasic;}

et{ _authbasic = value;}

}

ublic bool AuthNTLM

{

get{ return _authntlm;}

et{ _authntlm = value;}

}

ublic bool ContentIndexed

{

get{ return _indexed;}

et{ _indexed = value;}

}

ublic bool EnableDirBrowsing

{

get{ return _endirbrow;}

et{ _endirbrow = value;}

}

ublic bool EnableDefaultDoc

{

get{ return _endefaultdoc;}

et{ _endefaultdoc = value;}

}

ublic string Name

{

get{ return _name;}

et{ _name = value;}

}

ublic string Path

{

get{ return _path;}

et{ _path = value;}

}

ublic string DefaultDoc

{

get{ return _defaultdoc;}

et{ _defaultdoc = value;}

}

ublic string AnonymousUserName

{

get{ return _ausername;}

et{ _ausername = value;}

}

ublic string AnonymousUserPa

{

get{ return _auserpass;}

et{ _auserpass = value;}

}

}

/// <summary>

/// 集合VirtualDirectorie

/// </summary>

ublic class VirtualDirectories : System.Collections.Hashtable

{

ublic VirtualDirectories()

{

}

//添加新的方法

ublic VirtualDirectory Find(string strName)

{

return (VirtualDirectory)this[strName]

}

}

}

上一篇:Fedora下的远程桌面连接
下一篇:[Debian]硬盘安装Debian