SqlConnectionStringBuilder.FailoverPartner Property

Definition

获取或设置在主服务器停机时要连接到的伙伴服务器的名称或地址。Gets or sets the name or address of the partner server to connect to if the primary server is down.

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
Public Property FailoverPartner As String

Property Value

String

FailoverPartner 属性的值,或者,如果未提供任何值,则为 String.EmptyThe value of the FailoverPartner property, or String.Empty if none has been supplied.

Attributes

Exceptions

若要将值设置为 null,请使用 ValueTo set the value to null, use Value.

Applies to

See also