一个关于IIS的类[4]

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

本文简介:选择自 acewang 的 blog

        denewvdir.properties("path")(0) = pathtoroot

        denewvdir.properties("accessflags")(0) = 513

        denewvdir.properties("frontpageweb")(0) = 1

        denewvdir.commitchanges()

        deroot.commitchanges()

        'create a application

        denewvdir.invoke("appcreate", true) 

        'save changes

        denewvdir.commitchanges()

        deroot.commitchanges()

        denewvdir.close()

        deroot.close() 

        return site

    end function 

    private shared sub createphysicaldirectory(byval pathtoroot as string, byval websitename as string)

        if (directory.exists(pathtoroot)) then

            throw new exception("error creating new website: customer root directory already exists at " + pathtoroot)

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

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

go top