Delen via


IServerSettings.BackupDirectory Property

Gets or sets the BackupDirectory property for an instance SQL Server.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<DisplayNameKeyAttribute("Server_BackupDirectoryName")> _
<DisplayDescriptionKeyAttribute("Server_BackupDirectoryDesc")> _
Property BackupDirectory As String
    Get
    Set
'Usage
Dim instance As IServerSettings
Dim value As String

value = instance.BackupDirectory

instance.BackupDirectory = value
[DisplayNameKeyAttribute("Server_BackupDirectoryName")]
[DisplayDescriptionKeyAttribute("Server_BackupDirectoryDesc")]
string BackupDirectory { get; set; }
[DisplayNameKeyAttribute(L"Server_BackupDirectoryName")]
[DisplayDescriptionKeyAttribute(L"Server_BackupDirectoryDesc")]
property String^ BackupDirectory {
    String^ get ();
    void set (String^ value);
}
[<DisplayNameKeyAttribute("Server_BackupDirectoryName")>]
[<DisplayDescriptionKeyAttribute("Server_BackupDirectoryDesc")>]
abstract BackupDirectory : string with get, set
function get BackupDirectory () : String
function set BackupDirectory (value : String)

Property Value

Type: System.String
String