Aracılığıyla paylaş


BackupDevice.ReadMediaHeader Method

Enumerates the values of a backup media header record.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Bildirim
Public Function ReadMediaHeader As DataTable
'Kullanım
Dim instance As BackupDevice
Dim returnValue As DataTable

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

Return Value

Type: System.Data.DataTable
A DataTable system object that contains the backup media header record.

Remarks

The ReadMediaHeader method returns the backup media header record in a DataTable object. The information returned is dependent on the version of SQL Server and is equivalent to the RESTOR LABEL ONLY Transact-SQL command.

Examples

Backing Up and Restoring Databases and Transaction Logs

See Also

Reference

BackupDevice Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Backup Devices (SQL Server)