IIISApplicationAdmin::RecycleApplicationPool

The IIISApplicationAdmin::RecycleApplicationPool method recycles the resources associated with an application pool when IIS is running in worker process isolation mode. Use the GetProcessMode method to ensure that IIS is running in worker process isolation mode before using this method. For more information about isolation modes, see IIS Modes of Operation.

STDMETHODIMP RecycleApplicationPool(
   LPCWSTR szMDPath
);

Parameters

  • szMDPath
    Specifies the name of the application pool to recycle.

Return Values

This method returns S_OK if the method succeeded, or other error codes converted to an HRESULT if the method failed.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

Header: Declared in iwamreg.h.

See Also