共用方式為


IServerInformation.RootDirectory 屬性

Gets the root directory for the instance of SQL Server.

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

語法

'宣告
<DisplayNameKeyAttribute("Server_RootDirectoryName")> _
<DisplayDescriptionKeyAttribute("Server_RootDirectoryDesc")> _
ReadOnly Property RootDirectory As String 
    Get
'用途
Dim instance As IServerInformation 
Dim value As String 

value = instance.RootDirectory
[DisplayNameKeyAttribute("Server_RootDirectoryName")]
[DisplayDescriptionKeyAttribute("Server_RootDirectoryDesc")]
string RootDirectory { get; }
[DisplayNameKeyAttribute(L"Server_RootDirectoryName")]
[DisplayDescriptionKeyAttribute(L"Server_RootDirectoryDesc")]
property String^ RootDirectory {
    String^ get ();
}
[<DisplayNameKeyAttribute("Server_RootDirectoryName")>]
[<DisplayDescriptionKeyAttribute("Server_RootDirectoryDesc")>]
abstract RootDirectory : string
function get RootDirectory () : String

屬性值

型別:System.String
The root directory for the instance of SQL Server.

請參閱

參考

IServerInformation 介面

Microsoft.SqlServer.Management.Smo 命名空間