共用方式為


IServerInformation.MasterDBPath 屬性

Gets the master database data path for the instance of SQL Server.

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

語法

'宣告
<DisplayDescriptionKeyAttribute("Server_MasterDBPathDesc")> _
<DisplayNameKeyAttribute("Server_MasterDBPathName")> _
ReadOnly Property MasterDBPath As String 
    Get
'用途
Dim instance As IServerInformation 
Dim value As String 

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

屬性值

型別:System.String
The master database data path for the instance of SQL Server.

請參閱

參考

IServerInformation 介面

Microsoft.SqlServer.Management.Smo 命名空間