Share via


IDatabaseOperations.GetAsync Method (String, String, CancellationToken)

 

Returns information about an Azure SQL Database.

Namespace:   Microsoft.WindowsAzure.Management.Sql
Assembly:  Microsoft.WindowsAzure.Management.Sql (in Microsoft.WindowsAzure.Management.Sql.dll)

Syntax

Task<DatabaseGetResponse> GetAsync(
    string serverName,
    string databaseName,
    CancellationToken cancellationToken
)
Task<DatabaseGetResponse^>^ GetAsync(
    String^ serverName,
    String^ databaseName,
    CancellationToken cancellationToken
)
abstract GetAsync : 
        serverName:string *
        databaseName:string *
        cancellationToken:CancellationToken -> Task<DatabaseGetResponse>
Function GetAsync (
    serverName As String,
    databaseName As String,
    cancellationToken As CancellationToken
) As Task(Of DatabaseGetResponse)

Parameters

  • serverName
    Type: System.String

    The name of the Azure SQL Database Server on which the database is hosted.

  • databaseName
    Type: System.String

    The name of the Azure SQL Database to be retrieved.

Return Value

Type: System.Threading.Tasks.Task<DatabaseGetResponse>

Contains the response to a Get Database request.

See Also

IDatabaseOperations Interface
Microsoft.WindowsAzure.Management.Sql Namespace

Return to top