Udostępnij za pośrednictwem


Właściwość Server.BrowserServiceAccount

Pobiera konto usługa, działającą usługa przeglądarki na wystąpienie SQL Server.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property BrowserServiceAccount As String
    Get
'Użycie
Dim instance As Server
Dim value As String

value = instance.BrowserServiceAccount
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string BrowserServiceAccount { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ BrowserServiceAccount {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member BrowserServiceAccount : string
function get BrowserServiceAccount () : String

Wartość właściwości

Typ: System.String
A String obiekt, który określa SQL Server konto usługa przeglądarki na wystąpienie SQL Server.

Uwagi

SQL ServerPrzeglądarki zawiera SQL Server informacje o połączeniu klient komputerów i współużytkowane przez wiele SQL Server i wystąpień usług integracji.

Przykłady

C#

Server srv = new Server("(local)");
Console.WriteLine("The browser service account is " + srv.BrowserServiceAccount);

PowerShell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host "The browser service account is" $srv.BrowserServiceAccount