Information.RootDirectory Property

Gets the root directory for the instance of SQL Server.

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

Syntax

'Declaration
<SfcPropertyAttribute> _
Public ReadOnly Property RootDirectory As String
    Get
'Usage
Dim instance As Information
Dim value As String

value = instance.RootDirectory
[SfcPropertyAttribute]
public string RootDirectory { get; }
[SfcPropertyAttribute]
public:
property String^ RootDirectory {
    String^ get ();
}
[<SfcPropertyAttribute>]
member RootDirectory : string
function get RootDirectory () : String

Property Value

Type: System.String
A String value that specifies the root directory on the computer that is running the instance of SQL Server.