Server.BrowserStartMode Server.BrowserStartMode Server.BrowserStartMode Property

Definition

Gets the start mode for the SQL Server Browser Service running on the instance of SQL Server.

public:
 property Microsoft::SqlServer::Management::Smo::ServiceStartMode BrowserStartMode { Microsoft::SqlServer::Management::Smo::ServiceStartMode get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Expensive | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone)]
public Microsoft.SqlServer.Management.Smo.ServiceStartMode BrowserStartMode { get; }
Public ReadOnly Property BrowserStartMode As ServiceStartMode
Property Value

A ServiceStartMode object that specifies the start mode for the SQL Server Browser Service running on the instance of SQL Server.

Examples

C#

Server srv = new Server("(local)");  
Console.WriteLine("The SQL browser start mode is: " + srv.BrowserStartMode.ToString());  

PowerShell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")  
Write-Host "The SQL browser start mode is:" $srv.BrowserStartMode  

Remarks

SQL Server Browser provides SQL Server connection information to client computers and is shared across multiple instances of SQL Server and Integration Services.

Applies to