共用方式為


CloudServiceRolesOperationsExtensions.ListAsync Method

Definition

Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.

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

Parameters

operations
ICloudServiceRolesOperations

The operations group for this extension method.

resourceGroupName
String

Name of the resource group.

cloudServiceName
String

Name of the cloud service.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to