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

适用于

另请参阅