### AppUnload

You can use the AppUnload method of the IIsWebDirectory or IIsWebVirtualDir object to unload a Web application that is running out-of-process. All of the application's resources are released and the application's process is 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.AppUnload

###### Parameters

DirObj
  An IIS Admin 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.
      DirObj.AppUnload
    %>

###### See Also

AppCreate, AppDelete, AppDeleteRecursive, AppUnloadRecursive, AppGetStatus, AppDisable, AppDisableRecursive, AppEnable, AppEnableRecursive, AspAppRestart

© 1997-2001 Microsoft Corporation. All rights reserved.