AppGetStatus

[This is preliminary documentation and subject to change.]

You can use the AppGetStatus method of the IIsWebDirectory object to retrieve the current status of a Web application.

Syntax

vReturn = object.AppGetStatus 
 

Parts

vReturn
Receives the status of the application.
object
Contains the IIsWebDirectory object, usually as a result of a previous GetObject operation.

Return Values

APPSTATUS_STOPPED The application is not running.
APPSTATUS_RUNNING The application is running
APPSTATUS_NOTDEFINED No application is defined at the specified path.

Code Example

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

See Also

AppCreate AppDelete AppDeleteRecursive
AppUnload AppUnloadRecursive AppDisable
AppDisableRecursive AppEnable AppEnableRecursive


© 1997 by Microsoft Corporation. All rights reserved.