Freigeben über


VirtualMachinesOperationsExtensions.ListByLocationAsync Methode

Definition

Ruft alle virtuellen Computer unter dem angegebenen Abonnement für den angegebenen Speicherort ab.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>> ListByLocationAsync (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string location, System.Threading.CancellationToken cancellationToken = default);
static member ListByLocationAsync : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>>
<Extension()>
Public Function ListByLocationAsync (operations As IVirtualMachinesOperations, location As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of VirtualMachine))

Parameter

operations
IVirtualMachinesOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

location
String

Der Speicherort, für den virtuelle Computer unter dem Abonnement abgefragt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: