共用方式為


RegionOperationsExtensions.ListByServiceAsync Method

Definition

Lists all azure regions in which the service exists.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ApiManagement.Models.RegionContract>> ListByServiceAsync (this Microsoft.Azure.Management.ApiManagement.IRegionOperations operations, string resourceGroupName, string serviceName, System.Threading.CancellationToken cancellationToken = default);
static member ListByServiceAsync : Microsoft.Azure.Management.ApiManagement.IRegionOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ApiManagement.Models.RegionContract>>
<Extension()>
Public Function ListByServiceAsync (operations As IRegionOperations, resourceGroupName As String, serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of RegionContract))

Parameters

operations
IRegionOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to