次の方法で共有


IISApplicationPool Interface

The IISApplicationPool interface contains methods that can start, stop, recycle, or enumerate Web applications IIS. This interface can be used from a C++ or Visual Basic application that uses ADSI. The required header files, Iiisext.h and IISext_i.c, are installed with Visual Studio and the IIS Software Developer Kit.

For a C++ code example that uses ADSI to configure the metabase, see Using ADSI to Configure IIS in a C++ Application.

Methods in Vtable Order

In addition to the methods inherited from IADs, the IISApplicationPool interface exposes the following methods.

Method

Description

Recycle

Recycles an application pool. When recycling occurs, the worker process currently serving the application pool will terminate and the World Wide Web Publishing Service (WWW service) will restart a new worker process to replace it.

EnumAppsInPool

Enumerates applications in an IIS application pool.

Note

This method requires IIS 6.0 running in worker process isolation mode, or a later version.

EnumApps

Enumerates applications in the pooled application process.

Note

This method requires IIS 5.1 or earlier.

Start

Starts an IIS application or application pool.

Stop

Stops an IIS application or application pool.

Requirements

Client: Requires Windows XP Professional.

Server: Requires Windows Server 2003.

Product: IIS

Header: Declared in iiisext.h; include iisext_i.c.

See Also

Concepts

IIS ADSI Provider Interfaces

Using ADSI to Configure IIS in a C++ Application

IIS Constants and Header Files

IIISApplicationAdmin Interface