XMLTask.DiffOptions 属性

定义

获取或设置一个值,该值指示在比较文档时操作将使用的选项。

public:
 property Microsoft::SqlServer::Dts::Tasks::XMLTask::DTSXMLDiffOptions DiffOptions { Microsoft::SqlServer::Dts::Tasks::XMLTask::DTSXMLDiffOptions get(); void set(Microsoft::SqlServer::Dts::Tasks::XMLTask::DTSXMLDiffOptions value); };
public Microsoft.SqlServer.Dts.Tasks.XMLTask.DTSXMLDiffOptions DiffOptions { get; set; }
member this.DiffOptions : Microsoft.SqlServer.Dts.Tasks.XMLTask.DTSXMLDiffOptions with get, set
Public Property DiffOptions As DTSXMLDiffOptions

属性值

一个来自 DTSXMLDiffOptions 枚举的值,该值指示在比较文档时操作使用的选项。

实现

示例

The following code example assumes that an XMLTask has been created as myTask, with an OperationType set to Diff. 它使用 DTSXMLDiffOptions 枚举设置 DiffOptions 值。

myTask.OperationType = DTSXMLOperation.Diff;  
myTask.DiffAlgorithm = DTSXMLDiffAlgorithm.Fast;  
myTask.DiffOptions = DTSXMLDiffOptions.IgnoreDtd;  
myTask.OperationType = DTSXMLOperation.Diff  
myTask.DiffAlgorithm = DTSXMLDiffAlgorithm.Fast  
myTask.DiffOptions = DTSXMLDiffOptions.IgnoreDtd  

注解

此属性仅在 OperationType 设置为 Diff.

适用于