Share via


ReadBackupHeader 方法

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function ReadBackupHeader As DataTable
用法
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

返回值

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

注释

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.