AppDelete
IIsWebDirectory または IIsWebVirtualDir オブジェクトの AppDelete メソッドは、Web アプリケーション定義をメタベース キーから削除します。実行中のアプリケーションはシャット ダウンされます。このアプリケーションが IIS と同じプロセスで実行されている場合は、このアプリケーションに関連するアウトプロセス アプリケーションなどのすべてのリソースが解放されます。ただし、それらのリソースがほかのインプロセス アプリケーションから参照されていない場合に限ります。
注 インプロセス アプリケーションがほかのアプリケーションから現在参照されていない場合でも、サーバー コンポーネント DLL は解放されません。
AppDelete による削除操作は、元に戻せません。
構文
DirObj.AppDelete
パラメータ
- DirObj
IIsWebDirectory または IIsWebVirtualDir タイプの IIS Admin オブジェクトです。
コード例
<%
Dim DirObj
Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir")
'Delete the application at this directory.
DirObj.AppDelete
%>
関連項目
AppCreate、AppDeleteRecursive、AppUnload、AppUnloadRecursive、AppGetStatus、AppDisable、AppDisableRecursive、AppEnable、AppEnableRecursive、AspAppRestart