IIsWebDirectory.AppGetStatus (ADSI)
You can use the AppGetStatus method of the IIsWebDirectory (ADSI) or IIsWebVirtualDir (ADSI) object to retrieve the current status of a Web application.
Syntax
vReturn = DirObj.AppGetStatus
Parameters
- vReturn
Receives the status of the application. - DirObj
An IIS ADSI object of type IIsWebDirectory or IIsWebVirtualDir.
Return Values
APPSTATUS_NOTDEFINED | No application is defined at the specified path. |
APPSTATUS_RUNNING | The application is running. |
APPSTATUS_STOPPED | The application is not running. |
Code Example
<%
Dim DirObj, vStatus
Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir")
'Get the status of the application.
vReturn = DirObj.AppGetStatus
%>
Related Topics
- For information on other methods in the IIsWebDirectory object, see IIsWebDirectory (ADSI).