Shard.OpenConnectionAsync 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
OpenConnectionAsync(String) | |
OpenConnectionAsync(String, ConnectionOptions) | |
OpenConnectionAsync(String, SqlCredential) | |
OpenConnectionAsync(String, SqlCredential, ConnectionOptions) |
OpenConnectionAsync(String)
public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionAsync(string connectionString);
member this.OpenConnectionAsync : string -> System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection>
Public Function OpenConnectionAsync (connectionString As String) As Task(Of SqlConnection)
Parameters
- connectionString
- String
Returns
Applies to
OpenConnectionAsync(String, ConnectionOptions)
public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionAsync(string connectionString, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions options);
member this.OpenConnectionAsync : string * Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions -> System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection>
Public Function OpenConnectionAsync (connectionString As String, options As ConnectionOptions) As Task(Of SqlConnection)
Parameters
- connectionString
- String
- options
- ConnectionOptions
Returns
Applies to
OpenConnectionAsync(String, SqlCredential)
public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionAsync(string connectionString, System.Data.SqlClient.SqlCredential secureCredential);
member this.OpenConnectionAsync : string * System.Data.SqlClient.SqlCredential -> System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection>
Public Function OpenConnectionAsync (connectionString As String, secureCredential As SqlCredential) As Task(Of SqlConnection)
Parameters
- connectionString
- String
- secureCredential
- SqlCredential
Returns
Applies to
OpenConnectionAsync(String, SqlCredential, ConnectionOptions)
public System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection> OpenConnectionAsync(string connectionString, System.Data.SqlClient.SqlCredential secureCredential, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions options);
member this.OpenConnectionAsync : string * System.Data.SqlClient.SqlCredential * Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ConnectionOptions -> System.Threading.Tasks.Task<System.Data.SqlClient.SqlConnection>
Public Function OpenConnectionAsync (connectionString As String, secureCredential As SqlCredential, options As ConnectionOptions) As Task(Of SqlConnection)
Parameters
- connectionString
- String
- secureCredential
- SqlCredential
- options
- ConnectionOptions
Returns
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for .NET