Compartir a través de


IIsWebDirectory.AppGetStatus (ADSI)

The AppGetStatus method retrieves the status of a Web application. This method is obsolete because it will not work on late-bound clients. Instead, use IIsWebDirectory.AppGetStatus2 (ADSI).

objIIsWebDirectory.AppGetStatus 

Parameters

This method has no parameters.

Return Values

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

Value

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.AppGetStatus  
%>  

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