You can use the IIsWebVirtualDir object to set metabase properties that apply to one or all Web virtual directories for a Web virtual server. If you use the IIsWebVirtualDir object at the server's root virtual directory (.../W3SVC/2/Root), inheritable property values will apply to all subordinate virtual directories. You can set properties for a specific virtual directory by using the IIsWebVirtualDir object for a specific virtual directory (.../W3SVC/2/Root/AVdir).
You can also use IIsWebVirtualDir methods to create and manage Web applications in Web virtual directories and subordinate virtual directories. Applications may also be defined and managed in web directories. See IIsWebDirectory.
The IIsWebVirtualDir object is an ADSI container object.
For the server's root virtual directory,
Where MachineName can be any name or "LocalHost".
For a specific virtual directory,
Where MachineName can be any name or "LocalHost".
varReturn = object.{Method}
IIsWebVirtualDir | IIsWebDirectory | IIsWebFile |
Metabase Properties
ADSI Object Methods | Standard methods for ADSI objects |
ADSI container object methods | Standard methods for ADSI container objects |
Common Object Methods | Methods, other than ADSI methods, common to all IIS Admin Objects |
AppCreate | Creates an application at a specified metabase key |
AppDelete | Deletes an application definition at a specified key |
AppDeleteRecursive | Deletes application definitions at a specified key and subordinate keys |
AppDisable | Disables an application at a specified key |
AppDisableRecursive | Disables applications at a specified key and subordinate keys |
AppEnable | Enables an application at a specified key, that was previously disabled |
AppEnableRecursive | Enables applications at a specified key and subordinate keys, that were previously disabled |
AppGetStatus | Retrieves the status of an application |
AppUnload | Unloads an application at a specified key |
AppUnloadRecursive | Unloads applications at a specified key and subordinate keys |