你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PolicyOperationsExtensions.ListByServiceAsync 方法

定义

列出 API 管理服务的所有全局策略定义。

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

参数

operations
IPolicyOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

serviceName
String

API 管理服务的名称。

cancellationToken
CancellationToken

取消标记。

返回

适用于