Gets the unique ID of the database where the backup was taken.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public ReadOnly Property DatabaseGuid As Guid
Get
'用途
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
屬性值
型別:System.Guid
The database GUID.
備註
When the database is restored, a new GUID value is assigned.