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.
ADsPath
- IIS:// MachineName/W3SVC/ N/ROOT/ vdirName/ DirName
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 IIsWebDirectory object, usually as a result of a previous GetObject operation.Method
The object method chosen.
Can Contain
IIsWebDirectory |
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 subkeys. |
|
Disables an application at a specified key. |
|
Disables applications at a specified key and subkeys. |
|
Enables an application that was previously disabled at a specified key. |
|
Enables applications that were previously disabled at a specified key and subkeys. |
|
Retrieves the status of an application. |
|
Unloads an application at a specified key. |
|
Unloads applications at a specified key and subkeys. |
|
Restarts the ASP application that invoked it. |
Remarks
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).
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