Export (0) Print
Expand All

SqlConnectionStringBuilder.MultiSubnetFailover Property

.NET Framework 4.6 and 4.5

If your application is connecting to an AlwaysOn availability group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of and connection to the (currently) active server. For more information about SqlClient support for Always On Availability Groups, see SqlClient Support for High Availability, Disaster Recovery.

Namespace:  System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public bool MultiSubnetFailover { get; set; }

Property Value

Type: System.Boolean
Returns Boolean indicating the current value of the property.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft