SqlConnectionStringBuilder.MultiSubnetFailover Property


如果你的应用程序要连接到不同子网上的 AlwaysOn 可用性组 (AG),则设置 MultiSubnetFailover=true 会加快检测(当前)活动服务器以及与服务器的连接。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. 有关对 Always On 可用性组的 SqlClient 支持的详细信息,请参阅对高可用性、灾难恢复的 SqlClient 支持For more information about SqlClient support for Always On Availability Groups, see SqlClient Support for High Availability, Disaster Recovery.

 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


返回 Boolean,这指示属性的当前值。Returns Boolean indicating the current value of the property.

Applies to

See also