当前位置:web 服务器 > IIS >>

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

using System;
    using System.Data;
    using System.DirectoryServices;
    using System.Collections;
    namespace Aspcn.Management
    {
    /// <summary>
    /// IISManager 的摘要说明。
    /// </summary>
    public class IISManager
    {
    //定义需要使用的
    private string _server,_website;
    private VirtualDirectories _virdirs;
    protected System.DirectoryServices.DirectoryEntry rootfolder;
    private bool _batchflag;
    public IISManager()
    {
     //默认情况下使用localhost,即访问本地机
     _server = "localhost";
     _website = "1";
     _batchflag = false;
    }
    public IISManager(string strServer)
    {
     _server = strServer;
     _website = "1";
     _batchflag = false;
    }
    /// <summary>
    /// 定义公共属性
    /// </summary>
补充:asp.net教程,基础入门 
Apache
IIS
Nginx
Tomcat
如果你遇到web 服务器难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,