共用方式為


BrowserServiceAccount 屬性

Gets the service account for the SQL Server Browser service.

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

語法

'宣告
<DisplayDescriptionKeyAttribute("Server_BrowserServiceAccountDesc")> _
<DisplayNameKeyAttribute("Server_BrowserServiceAccountName")> _
ReadOnly Property BrowserServiceAccount As String
    Get
'用途
Dim instance As IServerSetupFacet
Dim value As String

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

屬性值

型別:System. . :: . .String
A String value that specifies the service account for the SQL Server Browser service.

範例

設定屬性