Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SqlConnectionStringBuilder.MultiSubnetFailover Property

Definition

Namespace:
System.Data.SqlClient
Assembly:
System.Data.SqlClient.dll
Assembly:
System.Data.dll
Source:
System.Data.SqlClient.notsupported.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public:
 property bool MultiSubnetFailover { bool get(); void set(bool value); };
public bool MultiSubnetFailover { get; set; }
member this.MultiSubnetFailover : bool with get, set
Public Property MultiSubnetFailover As Boolean

Property Value

Returns Boolean indicating the current value of the property.

Applies to

See also


Feedback

Was this page helpful?