DirectoryEntry class, update IIS scriptmaps attribute

xiaoxiao2021-03-06  68

Be sure to save in an array hostname = "localhost"; string newsitenum = "2"; string path = string.f "localhost"; Ormat ("IIS: // {0} / w3svc / {1} / root", Hostname, newsitenum; DirectoryEntry Root = New DirectoryEntry (PATH);

NewWebsiteInfoall newWeb = new newWebsiteInfoall (); arraylist arl = new arraylist (); arl.add (@ ". Rem, d: /windows/microsoft.net/framework/v1.1.4322/ASPNET_ISAPI.DLL, 1, Get, FirstAD, POST, Debug "); arl.add (@". Asax, d: /windows/microsoft.net/framework/v1.1.4322/ASPNET_ISAPI.DLL, 5, Get, HEAD ,POST, DEBUG "); root.properties [ "Scriptmaps"]. Value = arl.toarray (); root.commitchanges ();

转载请注明原文地址:https://www.9cbs.com/read-85884.html

New Post(0)