Share via


SqlConnectionStringBuilder.IPAddressPreference Property

Definition

Gets or sets the IP address family preference when establishing TCP connections.

public:
 property Microsoft::Data::SqlClient::SqlConnectionIPAddressPreference IPAddressPreference { Microsoft::Data::SqlClient::SqlConnectionIPAddressPreference get(); void set(Microsoft::Data::SqlClient::SqlConnectionIPAddressPreference value); };
public Microsoft.Data.SqlClient.SqlConnectionIPAddressPreference IPAddressPreference { get; set; }
member this.IPAddressPreference : Microsoft.Data.SqlClient.SqlConnectionIPAddressPreference with get, set
Public Property IPAddressPreference As SqlConnectionIPAddressPreference

Property Value

Returns the IP address preference.

Remarks

If Transparent Network IP Resolution (in .NET Framework) or Multi Subnet Failover is set to true, this setting has no effect.

Applies to