Share via


IIsApplicationPool (ADSI)

The IIsApplicationPool class corresponds to the IIsApplicationPool IIS Admin object, and contains the methods and read-only properties for the object.

IIS 5.1 and earlier: This object is not available.

ADsPath

  • IIS://MachineName/W3SVC/AppPools/AppPoolName

where MachineName can be any name or "LocalHost", and the AppPoolName is the name of the application pool, for example, "DefaultAppPool".

Syntax

varReturn = IIsApplicationPool. Method

Parameters

  • varReturn
    A variable that receives the return value from the method.

  • Method
    The object method chosen.

Methods

IIsApplicationPool.EnumAppsInPool (ADSI)

The EnumAppsInPool method populates an array of strings with the applications in the application pool that is specified by the object variable, which must be an instance of the IIsApplicationPool class.

IIsApplicationPool.Recycle (ADSI)

The Recycle method recycles the application pool that is specified by the object variable, which must be an instance of the IIsApplicationPool class. When recycling occurs, the worker process currently serving the application pool terminates and the World Wide Web Publishing Service (W3SVC) restarts a new worker process to replace it. .

IIsApplicationPool.Start (ADSI)

The Start method starts the application pool that is specified by the object variable, which must be an instance of the IIsApplicationPool class.

IIsApplicationPool.Stop (ADSI)

The Stop method stops the application pool that is specified by the object variable, which must be an instance of the IIsApplicationPool class.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS