SqlConnectionStringBuilder.TransparentNetworkIPResolution 屬性

定義

當此索引鍵的值設定為 true 時,應用程式必須擷取特定 DNS 項目的所有 IP 位址,並嘗試連線至清單上的第一個項目。 如果無法在 0.5 秒內建立連線,應用程式將會嘗試同時連線至所有其他項目。 在連線被接聽之後,應用程式便會與回應者的 IP 位址建立連線。

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

屬性值

Boolean

布林值。

備註

如果索引 MultiSubnetFailover 鍵設定為 trueTransparentNetworkIPResolution 則會忽略。

Failover Partner如果已設定索引鍵, TransparentNetworkIPResolution 則會忽略。

這個索引鍵的值必須是 truefalseyesno

的值 yes 會視為 與 的值 true 相同。

的值 no 會視為 與 的值 false 相同。

此機碼預設為 false

  • 連接到資料來源結尾處的Azure SQL Database:

    • .database.chinacloudapi.cn

    • .database.usgovcloudapi.net

    • .database.cloudapi.de

    • .database.windows.net

  • Authentication 是 'Active Directory 密碼' 或 'Active Directory 整合式'

否則它會預設為 true

適用於