Share via


ReadBackupHeader Método

Enumerates the contents of the media maintained by a backup device or operating system file.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Function ReadBackupHeader As DataTable
'Uso
Dim instance As BackupDevice
Dim returnValue As DataTable

returnValue = instance.ReadBackupHeader()
public DataTable ReadBackupHeader()
public:
DataTable^ ReadBackupHeader()
member ReadBackupHeader : unit -> DataTable 
public function ReadBackupHeader() : DataTable

Valor devuelto

Tipo: System.Data. . :: . .DataTable
A DataTable system object that contains the backup device or operating system file media information.

Comentarios

The ReadBackupHeader method returns the backup header information into a DataTable object. The information returned is dependent on the version of SQL Server and is equivalent to the RESTOR HEADER ONLY Transact-SQL command.