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

IIsWebFile (ADSI)

Properties

Windows ADSI Object Properties

Metabase Properties

A - Asp...

AccessFlags

AspErrorsToNTLog

AccessSSLFlags

AspExceptionCatchEnable

AnonymousPasswordSync

AspLogErrorRequests

AnonymousUserName

AspProcessorThreadMax

AnonymousUserPass

AspQueueConnectionTestTime

AppAllowClientDebug

AspQueueTimeout

AppAllowDebugging

AspRequestQueueMax

AppFriendlyName

AspScriptEngineCacheMax

AppIsolated

AspScriptErrorMessage

AppOopRecoverLimit

AspScriptErrorSentToBrowser

AppPackageID

AspScriptFileCacheSize

AppPackageName

AspScriptLanguage

AppRoot

AspScriptTimeout

AppWamClsid

AspSessionMax

AspAllowOutOfProcComponents

AspSessionTimeout

AspAllowSessionState

AspThreadGateEnabled

AspBufferingOn

AspThreadGateLoadHigh

AspCodepage

AspThreadGateLoadLow

AspEnableApplicationRestart

AspThreadGateSleepDelay

AspEnableAspHtmlFallback

AspThreadGateSleepMax

AspEnableChunkedEncoding

AspThreadGateTimeSlice

AspEnableParentPaths

AspTrackThreadingModel

AspEnableTypelibCache

Auth... - U

AuthFlags

HttpCustomHeaders

AuthPersistence

HttpErrors

CacheControlCustom

HttpExpires

CacheControlMaxAge

HttpPics

CacheControlNoCache

HttpRedirect

CacheISAPI

IPSecurity

ContentIndexed

LogonMethod

CreateCGIWithNewConsole

MimeMap

CreateProcessAsUser

PoolIdcTimeout

DefaultDoc

DefaultDocFooter

Realm

DefaultLogonDomain

RedirectHeaders

DirBrowseFlags

ScriptMaps

DontLog

SSIExecDisable

EnableDocFooter

EnableReverseDns

UploadReadAheadSize

Methods

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.

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

See Also