Propriété BackupSet.DatabaseGuid
Gets the unique ID of the database where the backup was taken.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public ReadOnly Property DatabaseGuid As Guid
Get
'Utilisation
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
Valeur de propriété
Type : System.Guid
The database GUID.
Notes
When the database is restored, a new GUID value is assigned.