共用方式為


RootDirectory 屬性

Gets the root directory for the instance of SQL Server.

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

語法

'宣告
<SfcPropertyAttribute> _
Public ReadOnly Property RootDirectory As String
    Get
'用途
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

屬性值

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