1
我想將MIME類型添加到新創建的虛擬目錄中,該目錄位於「默認網站」下。將MIME類型添加到虛擬目錄
using (ServerManager manager = new ServerManager())
{
ServerManager manager = new ServerManager();
var vdir = manager.Sites["Default Web Site"].Applications["/"].VirtualDirectories["VDir"];
}
我一直沒能找到合適的例子/文檔,在那裏我可以做到這一點對一個虛擬目錄(而不是一個網站),而無需使用DirectoryServices
。有什麼建議麼?