次の方法で共有


IISComputer::DeleteBackup

The DeleteBackup method deletes a metabase backup from a backup location.

HRESULT DeleteBackup(
  BSTR  bstrLocation,
  LONG  lVersion
);

Parameters

  • bstrLocation
    [in] String containing the location. If an empty string is specified, the default backup location will be used.

  • lVersion
    [in] Long integer containing the version number to delete. Must be less than or equal to MD_BACKUP_MAX_VERSION (9999). Can be set to MD_BACKUP_HIGHEST_VERSION (0xfffffffe) which automatically selects the highest version. These constants are defined in the Mddefw.h header file.

Return Value

Returns an HRESULT that contains one of the following values, or any error from the file system converted to an HRESULT.

Term

Definition

HRESULT_FROM_WIN32(ERROR_INVALID_NAME)

Specified name is invalid.

HRESULT_FROM_WIN32(ERROR_NOT_ENOUGH_MEMORY)

Insufficient memory to perform the operation.

S_OK

The method succeeded.

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 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

IISComputer2 Interface

IMSAdminBase

IMSAdminBase2