AppDisable

You can use the AppDisable method of the IIsWebDirectory or IIsWebVirtualDir object to disable a Web application that is running out-of-process. All of the application's resources are released and the application's process is terminated. Attempts to access this application will fail. You can use the AppEnable method to re-enable a disabled application. Both methods are used primarily when moving, copying, or renaming metabase keys. The AppDisable method has no effect if the application is running in-process.

Syntax

DirObj.AppDisable

 

Parameters
DirObj
An IIS Admin 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. 
  DirObj.AppDisable 
%> 
 
See Also

AppCreate, AppDelete, AppDeleteRecursive, AppUnload, AppUnloadRecursive, AppGetStatus, AppDisableRecursive, AppEnable, AppEnableRecursive, AspAppRestart