The GetWebSiteProperties method, given a site's server instance, returns the properties of the site as name/value pairs in a Dictionary object.
AdminWebServer.GetWebSiteProperties(ServerInstance)
The following example creates a Dictionary object containing properties for the default Web site (whose instance is 1
), then displays the value of the VrPath property:
Set objDict = objWebServer.GetWebSiteProperties(1)
Response.Write objDict.VrPath