共用方式為


CloudServiceOperatingSystemsOperationsExtensions.ListOSVersionsAsync Method

Definition

Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink is null to fetch all the OS versions.

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

Parameters

operations
ICloudServiceOperatingSystemsOperations

The operations group for this extension method.

location
String

Name of the location that the OS versions pertain to.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to