创建虚拟目录(VB.net)
来源:互联网 发布:淘宝网我喜欢 编辑:程序博客网 时间:2024/06/06 09:14
Function CriaDiretorioVirtual(ByVal vdirname As String, ByVal serverID As String, ByVal vdirPath As String, ByVal criaApplication As Boolean) As DirectoryEntry
Dim newvdir As DirectoryEntry
Dim root As DirectoryEntry
root = New DirectoryEntry("IIS://localhost/W3SVC/" + serverID + "/Root")
newvdir = root.Children.Add(vdirname, "IIsWebVirtualDir")
newvdir.Properties("Path")(0) = vdirPath
If criaApplication Then
newvdir.Invoke("AppCreate", True)
newvdir.Properties("AppFriendlyName")(0) = vdirname
newvdir.Properties("AppIsolated")(0) = 2
End If
newvdir.CommitChanges()
Return newvdir
一个死老外写的,应该不错。
- 创建虚拟目录(VB.net)
- Asp.net 创建虚拟目录
- asp.net动态创建虚拟目录
- 创建表,创建行,创建列(VB.NET)
- 用.NET在IIS中创建虚拟目录
- 用.net在IIS中创建虚拟目录
- 用.NET在IIS中创建虚拟目录
- vb.net创建多线程
- 创建虚拟目录
- 创建虚拟目录
- 创建虚拟目录
- 创建虚拟目录
- Asp.net实现IIS控制管理(Web虚拟目录的创建及管理)
- Asp.net实现IIS控制管理(Web虚拟目录的创建及管理)
- Asp.net实现IIS控制管理(Web虚拟目录的创建及管理)
- Asp.net实现IIS控制管理(Web虚拟目录的创建及管理)
- Asp.net实现IIS控制管理(Web虚拟目录的创建及管理)
- Asp.net实现IIS控制管理(Web虚拟目录的创建及管理)
- 幸福终点站
- Blog的第一份log
- 几个C#编程的小技巧 (二)
- java.sql.Connection.creatStatement(int resultSetType,int resultSetConcurrency)中参数的含义
- 既是结束,也是开始
- 创建虚拟目录(VB.net)
- 今天,我的blog第一帖开张了。
- 很久没来这里了,感觉blog快成月志了,呵呵
- 发言稿:智能化管理与商业智能技术
- Java的网络功能与编程1
- Java的网络功能与编程2
- 【灌水珍藏】我爱你(人民币版)
- Java的网络功能与编程 3
- 三步学会Java Socket编程1