IVirtualMachineImageOperations.GetAsync Method

Asynchronously retrieves information about an operating system image from the user image repository.

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

Usage

'Usage
Dim instance As IVirtualMachineImageOperations
Dim imageName As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of VirtualMachineImageGetResponse)

returnValue = instance.GetAsync(imageName, cancellationToken)

Syntax

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

Parameters

  • imageName
    The name of the operating system image for which information should be retrieved.
  • cancellationToken
    The cancellation token.

Return Value

The VirtualMachineImageGetResponse object that contains information about the operating system image.

Remarks

For more information about retrieving information about images, see the following resources:

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

IVirtualMachineImageOperations Interface
IVirtualMachineImageOperations Members
Microsoft.WindowsAzure.Management.Compute Namespace