RangeShardMap<TKey>.OpenConnectionForKeyAsync Method
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.
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);
override 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 (key As TKey, connectionString As String, secureCredential As SqlCredential, options As ConnectionOptions) As Task(Of SqlConnection)
Parameters
- key
- TKey
- connectionString
- String
- secureCredential
- SqlCredential
- options
- ConnectionOptions
Returns
Applies to
Azure SDK for .NET Latest
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
Azure SDK for .NET | Latest |
C#
public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionForKeyAsync(TKey key, string connectionString, System.Data.SqlClient.SqlCredential secureCredential);
override this.OpenConnectionForKeyAsync : 'Key * string * System.Data.SqlClient.SqlCredential -> System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection>
Public Function OpenConnectionForKeyAsync (key As TKey, connectionString As String, secureCredential As SqlCredential) As Task(Of SqlConnection)
Parameters
- key
- TKey
- connectionString
- String
- secureCredential
- SqlCredential
Returns
Applies to
Azure SDK for .NET Latest
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
Azure SDK for .NET | Latest |
C#
public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionForKeyAsync(TKey key, string connectionString);
override this.OpenConnectionForKeyAsync : 'Key * string -> System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection>
Public Function OpenConnectionForKeyAsync (key As TKey, connectionString As String) As Task(Of SqlConnection)
Parameters
- key
- TKey
- connectionString
- String
Returns
Applies to
Azure SDK for .NET Latest
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
Azure SDK for .NET | Latest |
C#
public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionForKeyAsync(TKey key, string connectionString, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions options);
override this.OpenConnectionForKeyAsync : 'Key * string * Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions -> System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection>
Public Function OpenConnectionForKeyAsync (key As TKey, connectionString As String, options As ConnectionOptions) As Task(Of SqlConnection)
Parameters
- key
- TKey
- connectionString
- String
- options
- ConnectionOptions
Returns
Applies to
Azure SDK for .NET Latest
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
Azure SDK for .NET | Latest |
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา
คำติชม Azure SDK for .NET
Azure SDK for .NET เป็นโครงการโอเพนซอร์ส เลือกลิงก์เพื่อให้คำติชม: