次の方法で共有


IIISApplicationAdmin::DeleteApplicationPool

The IIISApplicationAdmin::DeleteApplicationPool method deletes an application pool from the IIS server if no applications are assigned to the pool. 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 DeleteApplicationPool(
   LPCWSTR szMDPath
);

Parameters

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

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