IIsWebDirectory.AppUnloadRecursive (ADSI)

The AppUnLoadRecursive method unloads an application that is running and all of its child applications.

objIIsWebDirectory.AppUnloadRecursive 

Return Values

This method has no return values.

Example Code

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

Remarks

All of the application resources are released and the application processes are terminated. If the application is running in-process, the application is released, if it is not being referenced by any other applications. Server component DLLs are not released from in-process applications, even if they aren't currently referenced by other applications.

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