Compartilhar via


IWamAdmin::AppRecover

The IWamAdmin::AppRecover method reinstates a Web application definition that was previously deleted with the IWamAdmin::AppDeleteRecoverable method. If the application specified was not previously deleted, it will be reregistered with Component Services.

HRESULT STDMETHODCALLTYPE AppRecover(
      LPCWSTR szMDPath,
      BOOL fRecursive
);

Parameters

  • szMDPath
    [string][unique][in] Specifies the metabase path to the starting point of the application.

  • fRecursive
    [in] Specifies whether applications are also to be recovered for all subkeys (TRUE), or just the application at this key (FALSE).

Return Values

The method will return S_OK if the method succeeded, including the case that no application was defined at the specified path. If the method fails, other error codes converted to an HRESULT will be returned.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Header: Declared in iwamreg.h.