共用方式為


DatabaseSnapshotBaseName 屬性

取得資料庫的快照集基底名稱。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property DatabaseSnapshotBaseName As String
    Get
    Set
'用途
Dim instance As Database
Dim value As String

value = instance.DatabaseSnapshotBaseName

instance.DatabaseSnapshotBaseName = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public string DatabaseSnapshotBaseName { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
virtual property String^ DatabaseSnapshotBaseName {
    String^ get () sealed;
    void set (String^ value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
abstract DatabaseSnapshotBaseName : string with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
override DatabaseSnapshotBaseName : string with get, set
final function get DatabaseSnapshotBaseName () : String
final function set DatabaseSnapshotBaseName (value : String)

屬性值

型別:System. . :: . .String
唯一指定資料庫之快照集基底名稱的 String 值。

實作

IDatabaseOptions. . :: . .DatabaseSnapshotBaseName

備註

A database snapshot is a copy of the database at a point in time. The database snapshot base is the source database that is used to create the snapshot.

範例

Console.WriteLine(db.DatabaseSnapshotBaseName)