Share via


BackupSet.DatabaseGuid-Eigenschaft

Gets the unique ID of the database where the backup was taken.

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

Syntax

'Declaration
Public ReadOnly Property DatabaseGuid As Guid 
    Get
'Usage
Dim instance As BackupSet 
Dim value As Guid 

value = instance.DatabaseGuid
public Guid DatabaseGuid { get; }
public:
property Guid DatabaseGuid {
    Guid get ();
}
member DatabaseGuid : Guid
function get DatabaseGuid () : Guid

Eigenschaftswert

Typ: System.Guid
The database GUID.

Hinweise

When the database is restored, a new GUID value is assigned.

Siehe auch

Verweis

BackupSet Klasse

Microsoft.SqlServer.Management.Smo-Namespace