IIsWebVirtualDir (ADSI)
You can use the IIsWebVirtualDir object to set metabase properties that apply to one or all virtual directories for a Web site. If you use the IIsWebVirtualDir object at the server's ROOT directory (.../W3SVC/2/ROOT), inheritable property values will apply to all virtual subdirectories. 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 virtual subdirectories. Applications also can be defined and managed in Web directories. See IIsWebDirectory (ADSI).
The IIsWebVirtualDir object is an ADSI container object.
ADsPath
For the server's root virtual directory,
- IIS:// MachineName/W3SVC/ N/ROOT
where MachineName can be any name or LocalHost.
For a specific virtual directory,
- IIS:// MachineName/W3SVC/ N/ROOT/ vdirName
where MachineName can be any name or LocalHost.
Syntax
varReturn = object. Method
Parameters
varReturn
A variable that receives the return value from the method.object
A variable that contains the IIsWebVirtualDir object, usually as a result of a previous GetObject operation.Method
The object method chosen.
Can Contain
IIsWebVirtualDir |
|
Properties
Windows ADSI Object Properties
Metabase Properties
A-Asp... |
|
---|---|
Auth...-U |
|
Methods
Creates an application at a specified metabase key (the parameter is a Boolean). |
|
Creates an application at a specified metabase key (the parameter is a Long). |
|
Deletes an application definition at a specified key. |
|
Deletes application definitions at a specified key and its subkeys. |
|
Disables an application at a specified key. |
|
Disables applications at a specified key and its subkeys. |
|
Enables an application that was previously disabled at a specified key. |
|
Enables applications that were previously disabled at a specified key and its subkeys. |
|
Retrieves the status of an application. |
|
Unloads an application at a specified key. |
|
Unloads applications at a specified key and its subkeys. |
|
Restarts the ASP application that invoked it. |
|
Standard methods for ADSI objects. |
|
Standard methods for ADSI container objects. |
Requirements
Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Product: IIS