Share via


IVariableOperations.GetAsync Method

Retrieve the variable identified by variable name. (see https://aka.ms/azureautomationsdk/variableoperations for more information)

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

Usage

'Usage
Dim instance As IVariableOperations
Dim automationAccount As String
Dim variableName As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of VariableGetResponse)

returnValue = instance.GetAsync(automationAccount, variableName, cancellationToken)

Syntax

'Declaration
Function GetAsync ( _
    automationAccount As String, _
    variableName As String, _
    cancellationToken As CancellationToken _
) As Task(Of VariableGetResponse)
Task<VariableGetResponse> GetAsync (
    string automationAccount,
    string variableName,
    CancellationToken cancellationToken
)
Task<VariableGetResponse^>^ GetAsync (
    String^ automationAccount, 
    String^ variableName, 
    CancellationToken cancellationToken
)
Task<VariableGetResponse> GetAsync (
    String automationAccount, 
    String variableName, 
    CancellationToken cancellationToken
)
function GetAsync (
    automationAccount : String, 
    variableName : String, 
    cancellationToken : CancellationToken
) : Task<VariableGetResponse>

Parameters

  • automationAccount
    The automation account name.
  • variableName
    The name of variable.
  • cancellationToken
    Cancellation token.

Return Value

The response model for the get variable 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

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