你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
RangeShardMap<TKey>.OpenConnectionForKey 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
OpenConnectionForKey(TKey, String)
public System.Data.SqlClient.SqlConnection OpenConnectionForKey (TKey key, string connectionString);
override this.OpenConnectionForKey : 'Key * string -> System.Data.SqlClient.SqlConnection
Public Function OpenConnectionForKey (key As TKey, connectionString As String) As SqlConnection
参数
- key
- TKey
- connectionString
- String
返回
适用于
OpenConnectionForKey(TKey, String, ConnectionOptions)
public System.Data.SqlClient.SqlConnection OpenConnectionForKey (TKey key, string connectionString, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions options);
override this.OpenConnectionForKey : 'Key * string * Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions -> System.Data.SqlClient.SqlConnection
Public Function OpenConnectionForKey (key As TKey, connectionString As String, options As ConnectionOptions) As SqlConnection
参数
- key
- TKey
- connectionString
- String
- options
- ConnectionOptions
返回
适用于
OpenConnectionForKey(TKey, String, SqlCredential)
public System.Data.SqlClient.SqlConnection OpenConnectionForKey (TKey key, string connectionString, System.Data.SqlClient.SqlCredential secureCredential);
override this.OpenConnectionForKey : 'Key * string * System.Data.SqlClient.SqlCredential -> System.Data.SqlClient.SqlConnection
Public Function OpenConnectionForKey (key As TKey, connectionString As String, secureCredential As SqlCredential) As SqlConnection
参数
- key
- TKey
- connectionString
- String
- secureCredential
- SqlCredential
返回
适用于
OpenConnectionForKey(TKey, String, SqlCredential, ConnectionOptions)
public System.Data.SqlClient.SqlConnection OpenConnectionForKey (TKey key, string connectionString, System.Data.SqlClient.SqlCredential secureCredential, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions options);
override this.OpenConnectionForKey : 'Key * string * System.Data.SqlClient.SqlCredential * Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions -> System.Data.SqlClient.SqlConnection
Public Function OpenConnectionForKey (key As TKey, connectionString As String, secureCredential As SqlCredential, options As ConnectionOptions) As SqlConnection
参数
- key
- TKey
- connectionString
- String
- secureCredential
- SqlCredential
- options
- ConnectionOptions