ShardMap.OpenConnectionForKeyAsync Method
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.
Overloads
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
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
- options
- ConnectionOptions
Returns
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
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
- options
- ConnectionOptions
Returns
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.