IIsWebDirectory.AppDisableRecursive (ADSI)
You can use the AppDisableRecursive method of the IIsWebDirectory (ADSI) or IIsWebVirtualDir (ADSI) object to disable Web applications that are running out-of-process. The applications at the specified key and at all subordinate keys will be disabled. All of the application resources are released and the application processes are terminated. Attempts to access this application will fail. You can use the AppEnableRecursive method to re-enable disabled applications. Both methods are used primarily when moving, copying, or renaming metabase keys. The AppDisableRecursive method has no effect if the applications are running in-process.
Syntax
DirObj.AppDisableRecursive
Parameters
- DirObj
An IIS ADSI object of type IIsWebDirectory or IIsWebVirtualDir.
Code Example
<%
Dim DirObj
Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir")
'Disable the application at this directory
'and at all subdirectories.
DirObj.AppDisableRecursive
%>
Related Topics
- For information on other methods in the IIsWebDirectory object, see IIsWebDirectory (ADSI).