Share via


Database 屬性

Gets or sets the database on which the backup or restore operation runs.

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

語法

'宣告
Public Property Database As String
    Get
    Set
'用途
Dim instance As BackupRestoreBase
Dim value As String

value = instance.Database

instance.Database = value
public string Database { get; set; }
public:
property String^ Database {
    String^ get ();
    void set (String^ value);
}
member Database : string with get, set
function get Database () : String
function set Database (value : String)

屬性值

型別:System. . :: . .String
A String value that contains the database name. By default, the value is an empty string.