SqlConnectionStringBuilder.MultiSubnetFailover 屬性

定義

如果您的應用程式連線至不同子網路上的 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. 如需 AlwaysOn 可用性群組的 SqlClient 支援詳細資訊,請參閱高可用性、嚴重損壞修復的 SqlClient 支援For more information about SqlClient support for Always On Availability Groups, 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

屬性值

Boolean

傳回表示目前屬性值的 BooleanReturns Boolean indicating the current value of the property.

適用於

另請參閱