一个关于IIS的类[1]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 acewang 的 blog

imports system

imports system.directoryservices

imports system.io

public class iismanager 

    public shared function createwebsite(byval websitename as string, byval pathtoroot as string) as website

        dim root as directoryentry = new directoryentry("iis://localhost/w3svc") 

        ' find unused id value for new web site

        dim siteid as integer = 1

        dim e as directoryentry

        for each e in root.children

            if e.schemaclassname = "iiswebserver" then

                dim id as integer = convert.toint32(e.name)

                if id >= siteid then

                    siteid = id + 1

本文关键:IIS vb.net
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top