IVirtualMachineImageOperations.UpdateAsync Method
Asynchronously updates an operating system image in the 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 parameters As VirtualMachineImageUpdateParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of VirtualMachineImageUpdateResponse)
returnValue = instance.UpdateAsync(imageName, parameters, cancellationToken)
Syntax
'Declaration
Function UpdateAsync ( _
imageName As String, _
parameters As VirtualMachineImageUpdateParameters, _
cancellationToken As CancellationToken _
) As Task(Of VirtualMachineImageUpdateResponse)
Task<VirtualMachineImageUpdateResponse> UpdateAsync (
string imageName,
VirtualMachineImageUpdateParameters parameters,
CancellationToken cancellationToken
)
Task<VirtualMachineImageUpdateResponse^>^ UpdateAsync (
String^ imageName,
VirtualMachineImageUpdateParameters^ parameters,
CancellationToken cancellationToken
)
Task<VirtualMachineImageUpdateResponse> UpdateAsync (
String imageName,
VirtualMachineImageUpdateParameters parameters,
CancellationToken cancellationToken
)
function UpdateAsync (
imageName : String,
parameters : VirtualMachineImageUpdateParameters,
cancellationToken : CancellationToken
) : Task<VirtualMachineImageUpdateResponse>
Parameters
- imageName
The name of the image to be updated.
- parameters
The VirtualMachineImageUpdateParameters object that contains the parameters that are used to update an image.
- cancellationToken
The cancellation token.
Return Value
The VirtualMachineImageUpdateResponse object that contains information about the updated image.
Remarks
For more information about updating 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