This topic has not yet been rated - Rate this topic

IIsWebDirectory.AppDisable (ADSI)

IIS 6.0

The AppDisable method disables a Web application that is running. All of the application's resources are released and the application's process is terminated.

objIIsWebDirectory.AppDisable 
DirObj

An IIS ADSI object of type IIsWebDirectory or IIsWebVirtualDir.

This method has no return values.


<%  
  Dim DirObj  
  Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir")  
  'Disable the application at this directory.  
  DirObj.AppDisable  
%>  

Attempts to access this application will fail. You can use the AppEnable method to re-enable disabled applications. Both methods are used primarily when moving, copying, or renaming metabase keys. The AppDisable method has no effect if the applications are running in-process.

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.