RangeShardMap<TKey>.OpenConnectionForKeyAsync Method

Definition

Overloads

OpenConnectionForKeyAsync(TKey, String, SqlCredential, ConnectionOptions)

C#
public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionForKeyAsync(TKey key, string connectionString, System.Data.SqlClient.SqlCredential secureCredential, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions options);

Parameters

key
TKey
connectionString
String
secureCredential
SqlCredential

Returns

Applies to

Azure SDK for .NET Latest
ผลิตภัณฑ์ เวอร์ชัน
Azure SDK for .NET Latest

OpenConnectionForKeyAsync(TKey, String, SqlCredential)

C#
public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionForKeyAsync(TKey key, string connectionString, System.Data.SqlClient.SqlCredential secureCredential);

Parameters

key
TKey
connectionString
String
secureCredential
SqlCredential

Returns

Applies to

Azure SDK for .NET Latest
ผลิตภัณฑ์ เวอร์ชัน
Azure SDK for .NET Latest

OpenConnectionForKeyAsync(TKey, String)

C#
public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionForKeyAsync(TKey key, string connectionString);

Parameters

key
TKey
connectionString
String

Returns

Applies to

Azure SDK for .NET Latest
ผลิตภัณฑ์ เวอร์ชัน
Azure SDK for .NET Latest

OpenConnectionForKeyAsync(TKey, String, ConnectionOptions)

C#
public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionForKeyAsync(TKey key, string connectionString, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions options);

Parameters

key
TKey
connectionString
String

Returns

Applies to

Azure SDK for .NET Latest
ผลิตภัณฑ์ เวอร์ชัน
Azure SDK for .NET Latest