Click to Rate and Give Feedback

  Switch on low bandwidth view
IIsWebDirectory (ADSI)

The IIsWebDirectory object is used to set metabase properties that apply to one or more Web directories for a Web server. When you use the IIsWebDirectory object to set metabase properties for a Web directory, inheritable properties will apply to all subdirectories and files.

You also can use IIsWebDirectory methods to create and manage Web applications in Web directories and subdirectories. Applications can also be defined and managed in virtual directories by using IIsWebVirtualDir (ADSI).

The IIsWebDirectory object is an ADSI container object.

IIS:// MachineName/W3SVC/ N/ROOT/ vdirName/ DirName

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 IIsWebDirectory object, usually as a result of a previous GetObject operation.

Method

The object method chosen.

IIsWebDirectory

IIsWebFile (ADSI)

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 subkeys.

IIsWebDirectory.AppDisable (ADSI)

Disables an application at a specified key.

IIsWebDirectory.AppDisableRecursive (ADSI)

Disables applications at a specified key and 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 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 subkeys.

IIsWebDirectory.AspAppRestart (ADSI)

Restarts the ASP application that invoked it.

Web directories can be nested and are addressed with the path to the directory, including the directory name (for example, .../ vdirName/Dir1/Dir1a/Dir1ab, and so on).

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

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker