IIsWebDirectory 또는 IIsWebVirtualDir 개체의 AppDisable 메서드를 사용하여 out-of-process를 실행하는 웹 응용 프로그램을 비활성화할 수 있습니다. 모든 응용 프로그램의 리소스가 해제되고 응용 프로그램의 프로세스가 종료됩니다. 이 응용 프로그램에는 액세스할 수 없습니다. AppEnable 메서드를 사용하여 비활성화된 응용 프로그램을 다시 활성화할 수 있습니다. 두 메서드는 메타베이스 키를 이동, 복사, 이름 변경시 주로 사용합니다. 응용 프로그램이 in-process를 실행할 때는 AppDisable 메서드를 사용해도 효과가 없습니다.
DirObj.AppDisable
<%
Dim DirObj
Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir")
'Disable the application at this directory.
DirObj.AppDisable
%>
AppCreate, AppDelete, AppDeleteRecursive, AppUnload, AppUnloadRecursive, AppGetStatus, AppDisableRecursive, AppEnable, AppEnableRecursive, AspAppRestart