IIsWebDirectory.AppUnloadRecursive (ADSI)
You can use the AppUnloadRecursive method of the IIsWebDirectory (ADSI) or IIsWebVirtualDir (ADSI) object to unload Web applications that are running out-of-process. The applications at the specified key and at all subordinate keys will be unloaded. 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.
Note Server component DLLs are not released from in-process applications, even if they aren't currently referenced by other applications.
Syntax
DirObj.AppUnloadRecursive
Parameters
- DirObj
An IIS ADSI object of type IIsWebDirectory or IIsWebVirtualDir.
Code Example
<%
Dim DirObj
Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir")
'Unload the application at this directory
'and all subordinate directories.
DirObj.AppUnloadRecursive
%>
Related Topics
- For information on other methods in the IIsWebDirectory object, see IIsWebDirectory (ADSI).