Database.DatabaseSnapshotBaseName 属性

Gets the name of the snapshot base for the database.

命名空间:  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
A String value that uniquely specifies the name of the snapshot base for the database.

实现

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)

请参阅

参考

Database 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

使用数据库对象

使用快照隔离

创建、更改和删除数据库

CREATE DATABASE (Transact-SQL)