您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

ShardMap.OpenConnectionForKeyAsync Method

Definition

Overloads

OpenConnectionForKeyAsync<TKey>(TKey, String)
OpenConnectionForKeyAsync<TKey>(TKey, String, ConnectionOptions)
OpenConnectionForKeyAsync<TKey>(TKey, String, SqlCredential)
OpenConnectionForKeyAsync<TKey>(TKey, String, SqlCredential, ConnectionOptions)

OpenConnectionForKeyAsync<TKey>(TKey, String)

public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionForKeyAsync<TKey> (TKey key, string connectionString);
member this.OpenConnectionForKeyAsync : 'Key * string -> System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection>
Public Function OpenConnectionForKeyAsync(Of TKey) (key As TKey, connectionString As String) As Task(Of SqlConnection)

Type Parameters

TKey

Parameters

key
TKey
connectionString
String

Returns

Task<SqlConnection>

Applies to

OpenConnectionForKeyAsync<TKey>(TKey, String, ConnectionOptions)

public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionForKeyAsync<TKey> (TKey key, string connectionString, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions options);
member this.OpenConnectionForKeyAsync : 'Key * string * Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions -> System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection>
Public Function OpenConnectionForKeyAsync(Of TKey) (key As TKey, connectionString As String, options As ConnectionOptions) As Task(Of SqlConnection)

Type Parameters

TKey

Parameters

key
TKey
connectionString
String

Returns

Task<SqlConnection>

Applies to

OpenConnectionForKeyAsync<TKey>(TKey, String, SqlCredential)

public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionForKeyAsync<TKey> (TKey key, string connectionString, System.Data.SqlClient.SqlCredential secureCredential);
member this.OpenConnectionForKeyAsync : 'Key * string * System.Data.SqlClient.SqlCredential -> System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection>
Public Function OpenConnectionForKeyAsync(Of TKey) (key As TKey, connectionString As String, secureCredential As SqlCredential) As Task(Of SqlConnection)

Type Parameters

TKey

Parameters

key
TKey
connectionString
String
secureCredential
SqlCredential

Returns

Task<SqlConnection>

Applies to

OpenConnectionForKeyAsync<TKey>(TKey, String, SqlCredential, ConnectionOptions)

public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionForKeyAsync<TKey> (TKey key, string connectionString, System.Data.SqlClient.SqlCredential secureCredential, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions options);
member this.OpenConnectionForKeyAsync : 'Key * string * System.Data.SqlClient.SqlCredential * Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions -> System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection>
Public Function OpenConnectionForKeyAsync(Of TKey) (key As TKey, connectionString As String, secureCredential As SqlCredential, options As ConnectionOptions) As Task(Of SqlConnection)

Type Parameters

TKey

Parameters

key
TKey
connectionString
String
secureCredential
SqlCredential

Returns

Task<SqlConnection>

Applies to