Share via


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(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property RootDirectory As String
    Get
'Usage
Dim instance As Information
Dim value As String

value = instance.RootDirectory
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string RootDirectory { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ RootDirectory {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
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.