SqlConnectionStringBuilder.IPAddressPreference Property
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); };
C#
public Microsoft.Data.SqlClient.SqlConnectionIPAddressPreference IPAddressPreference { get; set; }
member this.IPAddressPreference : Microsoft.Data.SqlClient.SqlConnectionIPAddressPreference with get, set
Public Property IPAddressPreference As SqlConnectionIPAddressPreference
Returns the IP address preference.
If Transparent Network IP Resolution
(in .NET Framework) or Multi Subnet Failover
is set to true, this setting has no effect.
Produk | Versi |
---|---|
SqlClient .NET Core | 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |
SqlClient .NET Framework | 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |
SqlClient .NET Standard | 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |