Share via


IConnectionOperations.CreateAsync Method

Create a connection. (see https://aka.ms/azureautomationsdk/connectionoperations for more information)

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

Usage

'Usage
Dim instance As IConnectionOperations
Dim automationAccount As String
Dim parameters As ConnectionCreateParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of ConnectionCreateResponse)

returnValue = instance.CreateAsync(automationAccount, parameters, cancellationToken)

Syntax

'Declaration
Function CreateAsync ( _
    automationAccount As String, _
    parameters As ConnectionCreateParameters, _
    cancellationToken As CancellationToken _
) As Task(Of ConnectionCreateResponse)
Task<ConnectionCreateResponse> CreateAsync (
    string automationAccount,
    ConnectionCreateParameters parameters,
    CancellationToken cancellationToken
)
Task<ConnectionCreateResponse^>^ CreateAsync (
    String^ automationAccount, 
    ConnectionCreateParameters^ parameters, 
    CancellationToken cancellationToken
)
Task<ConnectionCreateResponse> CreateAsync (
    String automationAccount, 
    ConnectionCreateParameters parameters, 
    CancellationToken cancellationToken
)
function CreateAsync (
    automationAccount : String, 
    parameters : ConnectionCreateParameters, 
    cancellationToken : CancellationToken
) : Task<ConnectionCreateResponse>

Parameters

  • automationAccount
    The automation account name.
  • parameters
    The parameters supplied to the create connection operation.
  • cancellationToken
    Cancellation token.

Return Value

The response model for the create connection operation.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

IConnectionOperations Interface
IConnectionOperations Members
Microsoft.WindowsAzure.Management.Automation Namespace