Compartir a través de


IIsWebDirectory.AppDisableRecursive (ADSI)

The AppDisableRecursive method disables a Web application that is running, and all of its child applications. All of the application's resources are released and the application's process is terminated.

objIIsWebDirectory.AppDisableRecursive 

Return Values

This method has no return values.

Example Code

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

Remarks

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.

Requirements

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

See Also

Concepts

IIsWebDirectory (ADSI)

IIsWebVirtualDir (ADSI)

Using ADSI to Configure IIS