XMLTask.FailOnDifference Property

Definition

获取或设置一个布尔值,该值指示如果 XML 文档无法根据验证架构进行验证,任务是否失败。Gets or sets a Boolean that indicates whether the task fails if the XML document fails to validate according to the validation schema.

public:
 property bool FailOnDifference { bool get(); void set(bool value); };
public bool FailOnDifference { get; set; }
member this.FailOnDifference : bool with get, set
Public Property FailOnDifference As Boolean

Property Value

Boolean

如果在 XML 文档无法根据验证架构进行验证时任务失败,则为 true;如果 XML 验证不影响任务成功,则为 false。true if the task fails if the XML document fails to validate according to the validation schema; false if XML validation does not affect task success.

Implements

Remarks

默认值为 FalseDefault value is False. 当设置为或时,将使用此属性 OperationType Diff PatchThis property is used when the OperationType is set to Diff or Patch.

Applies to