Share via


IIsWebDirectory.AppEnableRecursive (ADSI)

You can use the AppEnableRecursive method of the IIsWebDirectory (ADSI) or IIsWebVirtualDir (ADSI) object to reinstate Web application definitions that were previously disabled with the AppDisableRecursive method. If the applications specified were not previously deleted, they will be reregistered with Component Services.

Syntax

DirObj.AppEnableRecursive

Parameters
  • DirObj
    An IIS ADSI object of type IIsWebDirectory or IIsWebVirtualDir.
Code Example
  <% 
  Dim DirObj 
  Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir") 
  'Enable the application at this directory 
  'and at all subdirectories. 
  DirObj.AppEnableRecursive 
%>