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

PolicyEventsOperationsExtensions.ListQueryResultsForPolicyDefinitionAsync 方法

定义

查询订阅级别策略定义的策略事件。

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.PolicyInsights.Models.PolicyEvent>> ListQueryResultsForPolicyDefinitionAsync (this Microsoft.Azure.Management.PolicyInsights.IPolicyEventsOperations operations, string subscriptionId, string policyDefinitionName, Microsoft.Azure.Management.PolicyInsights.Models.QueryOptions queryOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member ListQueryResultsForPolicyDefinitionAsync : Microsoft.Azure.Management.PolicyInsights.IPolicyEventsOperations * string * string * Microsoft.Azure.Management.PolicyInsights.Models.QueryOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.PolicyInsights.Models.PolicyEvent>>
<Extension()>
Public Function ListQueryResultsForPolicyDefinitionAsync (operations As IPolicyEventsOperations, subscriptionId As String, policyDefinitionName As String, Optional queryOptions As QueryOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of PolicyEvent))

参数

operations
IPolicyEventsOperations

此扩展方法的操作组。

subscriptionId
String

Microsoft Azure 订阅 ID。

policyDefinitionName
String

策略定义名称。

queryOptions
QueryOptions

操作的其他参数

cancellationToken
CancellationToken

取消标记。

返回

适用于