BackupDevice.ReadBackupHeader Method
SQL Server 2012
Enumerates the contents of the media maintained by a backup device or operating system file.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
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.
