ShardMap.OpenConnectionForKey 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
OpenConnectionForKey<TKey>(TKey, String, SqlCredential, ConnectionOptions)
public System.Data.SqlClient.SqlConnection OpenConnectionForKey<TKey> (TKey key, string connectionString, System.Data.SqlClient.SqlCredential secureCredential, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions options);
member this.OpenConnectionForKey : 'Key * string * System.Data.SqlClient.SqlCredential * Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions -> System.Data.SqlClient.SqlConnection
Public Function OpenConnectionForKey(Of TKey) (key As TKey, connectionString As String, secureCredential As SqlCredential, options As ConnectionOptions) As SqlConnection
Type Parameters
- TKey
Parameters
- key
- TKey
- connectionString
- String
- secureCredential
- SqlCredential
- options
- ConnectionOptions
Returns
Applies to
OpenConnectionForKey<TKey>(TKey, String, SqlCredential)
public System.Data.SqlClient.SqlConnection OpenConnectionForKey<TKey> (TKey key, string connectionString, System.Data.SqlClient.SqlCredential secureCredential);
member this.OpenConnectionForKey : 'Key * string * System.Data.SqlClient.SqlCredential -> System.Data.SqlClient.SqlConnection
Public Function OpenConnectionForKey(Of TKey) (key As TKey, connectionString As String, secureCredential As SqlCredential) As SqlConnection
Type Parameters
- TKey
Parameters
- key
- TKey
- connectionString
- String
- secureCredential
- SqlCredential
Returns
Applies to
OpenConnectionForKey<TKey>(TKey, String)
public System.Data.SqlClient.SqlConnection OpenConnectionForKey<TKey> (TKey key, string connectionString);
member this.OpenConnectionForKey : 'Key * string -> System.Data.SqlClient.SqlConnection
Public Function OpenConnectionForKey(Of TKey) (key As TKey, connectionString As String) As SqlConnection
Type Parameters
- TKey
Parameters
- key
- TKey
- connectionString
- String
Returns
Applies to
OpenConnectionForKey<TKey>(TKey, String, ConnectionOptions)
public System.Data.SqlClient.SqlConnection OpenConnectionForKey<TKey> (TKey key, string connectionString, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions options);
member this.OpenConnectionForKey : 'Key * string * Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions -> System.Data.SqlClient.SqlConnection
Public Function OpenConnectionForKey(Of TKey) (key As TKey, connectionString As String, options As ConnectionOptions) As SqlConnection
Type Parameters
- TKey
Parameters
- key
- TKey
- connectionString
- String
- options
- ConnectionOptions
Returns
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for .NET