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

ArmPolicyInsightsModelFactory.PolicyDefinitionSummary 方法

定义

初始化 PolicyDefinitionSummary 的新实例。

public static Azure.ResourceManager.PolicyInsights.Models.PolicyDefinitionSummary PolicyDefinitionSummary (Azure.Core.ResourceIdentifier policyDefinitionId = default, string policyDefinitionReferenceId = default, System.Collections.Generic.IEnumerable<string> policyDefinitionGroupNames = default, string effect = default, Azure.ResourceManager.PolicyInsights.Models.PolicySummaryResults results = default);
static member PolicyDefinitionSummary : Azure.Core.ResourceIdentifier * string * seq<string> * string * Azure.ResourceManager.PolicyInsights.Models.PolicySummaryResults -> Azure.ResourceManager.PolicyInsights.Models.PolicyDefinitionSummary
Public Shared Function PolicyDefinitionSummary (Optional policyDefinitionId As ResourceIdentifier = Nothing, Optional policyDefinitionReferenceId As String = Nothing, Optional policyDefinitionGroupNames As IEnumerable(Of String) = Nothing, Optional effect As String = Nothing, Optional results As PolicySummaryResults = Nothing) As PolicyDefinitionSummary

参数

policyDefinitionId
ResourceIdentifier

策略定义 ID。

policyDefinitionReferenceId
String

策略定义引用 ID。

policyDefinitionGroupNames
IEnumerable<String>

策略定义组名称。

effect
String

策略效果,即策略定义操作。

results
PolicySummaryResults

策略定义的符合性摘要。

返回

用于模拟的新 PolicyDefinitionSummary 实例。

适用于