SqlClient.GetDatabasesAsync(String, CancellationToken) 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.
List the databases
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.Sql.Models.DatabasesList> GetDatabasesAsync(string serverName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDatabasesAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Sql.Models.DatabasesList>
override this.GetDatabasesAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Sql.Models.DatabasesList>
Public Overridable Function GetDatabasesAsync (serverName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DatabasesList)
Parameters
- serverName
- String
Server name
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The List the databases response.
Remarks
Discovery method used to populate dynamic parameter values at design time.