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

ArmResourcesModelFactory.WhatIfChange 方法

定义

初始化 WhatIfChange 的新实例。

public static Azure.ResourceManager.Resources.Models.WhatIfChange WhatIfChange (string resourceId = default, Azure.ResourceManager.Resources.Models.WhatIfChangeType changeType = Azure.ResourceManager.Resources.Models.WhatIfChangeType.Create, string unsupportedReason = default, BinaryData before = default, BinaryData after = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WhatIfPropertyChange> delta = default);
static member WhatIfChange : string * Azure.ResourceManager.Resources.Models.WhatIfChangeType * string * BinaryData * BinaryData * seq<Azure.ResourceManager.Resources.Models.WhatIfPropertyChange> -> Azure.ResourceManager.Resources.Models.WhatIfChange
Public Shared Function WhatIfChange (Optional resourceId As String = Nothing, Optional changeType As WhatIfChangeType = Azure.ResourceManager.Resources.Models.WhatIfChangeType.Create, Optional unsupportedReason As String = Nothing, Optional before As BinaryData = Nothing, Optional after As BinaryData = Nothing, Optional delta As IEnumerable(Of WhatIfPropertyChange) = Nothing) As WhatIfChange

参数

resourceId
String

资源 ID。

changeType
WhatIfChangeType

执行部署时对资源进行的更改的类型。

unsupportedReason
String

有关 What-If 不支持资源的原因的说明。

before
BinaryData

执行部署前的资源快照。

after
BinaryData

执行部署后资源的预测快照。

delta
IEnumerable<WhatIfPropertyChange>

资源属性的预测更改。

返回

用于模拟的新 WhatIfChange 实例。

适用于