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

PolicyEventsOperationsExtensions.ListQueryResultsForPolicySetDefinitionAsync 方法

定义

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

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.PolicyInsights.Models.PolicyEvent>> ListQueryResultsForPolicySetDefinitionAsync (this Microsoft.Azure.Management.PolicyInsights.IPolicyEventsOperations operations, string subscriptionId, string policySetDefinitionName, Microsoft.Azure.Management.PolicyInsights.Models.QueryOptions queryOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member ListQueryResultsForPolicySetDefinitionAsync : 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 ListQueryResultsForPolicySetDefinitionAsync (operations As IPolicyEventsOperations, subscriptionId As String, policySetDefinitionName 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。

policySetDefinitionName
String

策略集定义名称。

queryOptions
QueryOptions

操作的其他参数

cancellationToken
CancellationToken

取消标记。

返回

适用于