IDTSOutput100.HasSideEffects 属性

定义

public:
 property bool HasSideEffects { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(107)]
public bool HasSideEffects { [System.Runtime.InteropServices.DispId(107)] get; [System.Runtime.InteropServices.DispId(107)] set; }
[<System.Runtime.InteropServices.DispId(107)>]
[<get: System.Runtime.InteropServices.DispId(107)>]
[<set: System.Runtime.InteropServices.DispId(107)>]
member this.HasSideEffects : bool with get, set
Public Property HasSideEffects As Boolean

属性值

如果组件执行数据流引擎不可见的自定义操作,则为 true;否则为 false

属性

注解

将 HasSideEffects 属性 IDTSOutput100 设置为 true 时,你向数据流引擎指示输出所属的组件执行对引擎不可见的自定义操作。 因此,当数据流任务的 RunInOptimizedMode 属性为 true 时,将不会从执行计划中删除该组件。

例如,源组件没有输入,因此,如果其输出的 HasSideEffects 属性不 为 true,数据流引擎可以得出结论,源不执行任何操作,并从执行计划中将其删除。

目标组件 (没有输出) 的 HasSideEffects 属性 IDTSInput100 始终 为 true ,并且源组件 (没有输入) 的 HasSideEffects 属性 IDTSOutput100 始终 为 true 。 这两个属性通常在转换组件上 为 false

但是,RowCount 转换输入的 HasSideEffects 属性设置为 true。 因此,RowCount 不需要将其输出附加到下游组件。 因此,它可以在包调试期间用作临时目标,而无需保存任何数据。

适用于