Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IIsWebVirtualDir (ADSI)

IIS 6.0

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.

IIsWebDirectory.AppCreate (ADSI)

Creates an application at a specified metabase key (the parameter is a Boolean).

IIsWebDirectory.AppCreate2 (ADSI)

Creates an application at a specified metabase key (the parameter is a Long).

IIsWebDirectory.AppDelete (ADSI)

Deletes an application definition at a specified key.

IIsWebDirectory.AppDeleteRecursive (ADSI)

Deletes application definitions at a specified key and its subkeys.

IIsWebDirectory.AppDisable (ADSI)

Disables an application at a specified key.

IIsWebDirectory.AppDisableRecursive (ADSI)

Disables applications at a specified key and its subkeys.

IIsWebDirectory.AppEnable (ADSI)

Enables an application that was previously disabled at a specified key.

IIsWebDirectory.AppEnableRecursive (ADSI)

Enables applications that were previously disabled at a specified key and its subkeys.

IIsWebDirectory.AppGetStatus (ADSI)

Retrieves the status of an application.

IIsWebDirectory.AppUnload (ADSI)

Unloads an application at a specified key.

IIsWebDirectory.AppUnloadRecursive (ADSI)

Unloads applications at a specified key and its subkeys.

IIsWebDirectory.AspAppRestart (ADSI)

Restarts the ASP application that invoked it.

Windows ADSI Object Methods

Standard methods for ADSI objects.

Windows ADSI Container Object Methods

Standard methods for ADSI container objects.

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

Show:
© 2015 Microsoft