SqlConnectionStringBuilder.IPAddressPreference Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.