Freigeben über


LabPlanResource.GetLabVirtualMachineImageAsync Methode

Definition

Ruft eine Imageressource ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}
  • Vorgangs-IdImages_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.LabServices.LabVirtualMachineImageResource>> GetLabVirtualMachineImageAsync (string imageName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLabVirtualMachineImageAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.LabServices.LabVirtualMachineImageResource>>
override this.GetLabVirtualMachineImageAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.LabServices.LabVirtualMachineImageResource>>
Public Overridable Function GetLabVirtualMachineImageAsync (imageName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LabVirtualMachineImageResource))

Parameter

imageName
String

Der Name des Bilds.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

imageName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

imageName ist NULL.

Gilt für: