共用方式為


SqlConnectionStringBuilder.FailoverPartner 屬性

定義

取得或設定主要伺服器當機時,要連接之夥伴伺服器的名稱或位址。

public:
 property System::String ^ FailoverPartner { System::String ^ get(); void set(System::String ^ value); };
public string FailoverPartner { get; set; }
[System.ComponentModel.TypeConverter(typeof(System.Data.SqlClient.SqlConnectionStringBuilder+SqlDataSourceConverter))]
public string FailoverPartner { get; set; }
member this.FailoverPartner : string with get, set
[<System.ComponentModel.TypeConverter(typeof(System.Data.SqlClient.SqlConnectionStringBuilder+SqlDataSourceConverter))>]
member this.FailoverPartner : string with get, set
Public Property FailoverPartner As String

屬性值

FailoverPartner 屬性的值,如未提供任何值,則為 String.Empty

屬性

例外狀況

若要將值設定為 null,請使用 Value

適用於

另請參閱