共用方式為


XMLTask.FailOnDifference Property

Gets or sets a Boolean that indicates whether the task fails if the XML document fails to validate according to the validation schema.

命名空間: Microsoft.SqlServer.Dts.Tasks.XMLTask
組件: Microsoft.SqlServer.XMLTask (in microsoft.sqlserver.xmltask.dll)

語法

'宣告
Public Property FailOnDifference As Boolean
public bool FailOnDifference { get; set; }
public:
virtual property bool FailOnDifference {
    bool get () sealed;
    void set (bool value) sealed;
}
/** @property */
public final boolean get_FailOnDifference ()

/** @property */
public final void set_FailOnDifference (boolean value)
public final function get FailOnDifference () : boolean

public final function set FailOnDifference (value : boolean)

屬性值

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.

備註

Default value is False. This property is used when the OperationType is set to Diff or Patch.

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

XMLTask Class
XMLTask Members
Microsoft.SqlServer.Dts.Tasks.XMLTask Namespace