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.
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.
varReturn=object. Method
- 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.
Windows ADSI Object Properties
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