Sdílet prostřednictvím


CloudServiceRolesOperationsExtensions.GetAsync Method

Definition

Gets a role from a cloud service.

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

Parameters

operations
ICloudServiceRolesOperations

The operations group for this extension method.

roleName
String

Name of the role.

resourceGroupName
String

Name of the resource group.

cloudServiceName
String

Name of the cloud service.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to