Share via


IIsWebVirtualDir (ADSI)

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.

ADsPath

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.

Syntax

varReturn**=**object.Method

Parameters
  • 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.
Can Contain
IIsWebVirtualDir IIsWebFile (ADSI)
IIsWebDirectory (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 HttpErrors
AuthPersistence HttpExpires
CacheControlCustom HttpPics
CacheControlMaxAge HttpRedirect
CacheControlNoCache IPSecurity
CacheISAPI LogonMethod
ContentIndexed MimeMap
CreateCGIWithNewConsole Path
CreateProcessAsUser PoolIdcTimeout
DefaultDoc
DefaultDocFooter Realm
DefaultLogonDomain RedirectHeaders
DirBrowseFlags ScriptMaps
DontLog SSIExecDisable
EnableDocFooter
EnableReverseDns UNCPassword
HttpCustomHeaders UNCUserName
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 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.