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

IUpdate 接口

定义

PolicyDefinition 更新操作的模板,包含可修改的所有设置。

public interface IUpdate : Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.IAppliable<Microsoft.Azure.Management.ResourceManager.Fluent.IPolicyDefinition>, Microsoft.Azure.Management.ResourceManager.Fluent.PolicyDefinition.Update.IWithDescription, Microsoft.Azure.Management.ResourceManager.Fluent.PolicyDefinition.Update.IWithDisplayName, Microsoft.Azure.Management.ResourceManager.Fluent.PolicyDefinition.Update.IWithMode, Microsoft.Azure.Management.ResourceManager.Fluent.PolicyDefinition.Update.IWithPolicyRule, Microsoft.Azure.Management.ResourceManager.Fluent.PolicyDefinition.Update.IWithPolicyType
type IUpdate = interface
    interface IAppliable<IPolicyDefinition>
    interface IIndexable
    interface IWithDescription
    interface IWithDisplayName
    interface IWithMode
    interface IWithPolicyRule
    interface IWithPolicyType
Public Interface IUpdate
Implements IAppliable(Of IPolicyDefinition), IWithDescription, IWithDisplayName, IWithMode, IWithPolicyRule, IWithPolicyType
实现

属性

Key

PolicyDefinition 更新操作的模板,包含可修改的所有设置。

(继承自 IIndexable)

方法

Apply()

执行更新请求。

(继承自 IAppliable<T>)
ApplyAsync(CancellationToken, Boolean)

异步执行更新请求。

(继承自 IAppliable<T>)
WithBuiltInPolicyType()

将 PolicyDefinition 的策略类型指定为“BuiltIn”。

(继承自 IWithPolicyType)
WithCustomPolicyType()

将 PolicyDefinition 的策略类型指定为“Custom”。

(继承自 IWithPolicyType)
WithDescription(String)

指定 PolicyDefinition 的说明。

(继承自 IWithDescription)
WithDisplayName(String)

指定 PolicyDefinition 的显示名称。

(继承自 IWithDisplayName)
WithMode(String)

指定 PolicyDefinition 的模式。

(继承自 IWithMode)
WithNotSpecifiedPolicyType()

将 PolicyDefinition 的策略类型指定为“NotSpecified”。

(继承自 IWithPolicyType)
WithoutPolicyType()

删除 PolicyDefinition 的策略类型。

(继承自 IWithPolicyType)
WithPolicyRule(Object)

指定 PolicyDefinition 的策略规则。

(继承自 IWithPolicyRule)

适用于