Share via


IDatabaseOperations.CreateAsync Method (String, DatabaseCreateParameters, CancellationToken)

 

Creates a database in an Azure SQL Database Server.

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

Syntax

Task<DatabaseCreateResponse> CreateAsync(
    string serverName,
    DatabaseCreateParameters parameters,
    CancellationToken cancellationToken
)
Task<DatabaseCreateResponse^>^ CreateAsync(
    String^ serverName,
    DatabaseCreateParameters^ parameters,
    CancellationToken cancellationToken
)
abstract CreateAsync : 
        serverName:string *
        parameters:DatabaseCreateParameters *
        cancellationToken:CancellationToken -> Task<DatabaseCreateResponse>
Function CreateAsync (
    serverName As String,
    parameters As DatabaseCreateParameters,
    cancellationToken As CancellationToken
) As Task(Of DatabaseCreateResponse)

Parameters

  • serverName
    Type: System.String

    The name of the Azure SQL Database Server where the database will be created.

Return Value

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

Represents the response to a create database request from the service.

See Also

IDatabaseOperations Interface
Microsoft.WindowsAzure.Management.Sql Namespace

Return to top