Share via


IIsWebDirectory.AppDisable (ADSI)

You can use the AppDisable method of the IIsWebDirectory (ADSI) or IIsWebVirtualDir (ADSI) 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 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. 
  DirObj.AppDisable 
%>