共用方式為


RootDirectory 屬性

Gets the root directory for the instance of SQL Server.

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

語法

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

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

屬性值

型別:System. . :: . .String
String