共用方式為


Settings.BackupDirectory 屬性

Gets the default backup directory for the instance of Microsoft SQL Server.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property BackupDirectory As String 
    Get 
    Set
'用途
Dim instance As Settings 
Dim value As String 

value = instance.BackupDirectory

instance.BackupDirectory = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string BackupDirectory { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ BackupDirectory {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member BackupDirectory : string with get, set
function get BackupDirectory () : String 
function set BackupDirectory (value : String)

屬性值

型別:System.String
A String value that specifies the default backup directory path for the instance of SQL Server.

範例

在 SMO 中設定 SQL Server

請參閱

參考

Settings 類別

Microsoft.SqlServer.Management.Smo 命名空間