Поделиться через


IIsComputer.DeleteBackup (ADSI)

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

objIIsComputer.DeleteBackup(
  bstrLocation As BSTR,
  lVersion As LONG
)

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 Values

This method has no return values.

Example Code

<%  
  Dim ComputerObj  
  Set ComputerObj = GetObject("IIS://LocalHost")  
  'Delete version 1 backup.  
  ComputerObj.DeleteBackup "MyBackups", 1  
%>  

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

See Also

Concepts

IIsComputer (ADSI)

Using ADSI to Configure IIS