CloudServiceRolesOperationsExtensions.GetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for .NET