Partager via


IIsWebDirectory.AppGetStatus2 (ADSI)

The AppGetStatus2 method retrieves the status of a Web application.

objIIsWebDirectory.AppGetStatus2 As LONG

Parameters

This method has no parameters

Return Values

Returns one of the following values indicating the status of the application:

Term

Value

Meaning

APPSTATUS_NOTDEFINED

2

No application is defined at the specified path.

APPSTATUS_RUNNING

1

The application is running.

APPSTATUS_STOPPED

0

The application is not running.

Example Code

<%  
  Dim DirObj, vStatus  
  Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir")  
  'Get the status of the application.  
  vReturn = DirObj.AppGetStatus2  
%>  

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also

Concepts

IIsWebDirectory (ADSI)

IIsWebVirtualDir (ADSI)

Using ADSI to Configure IIS