DtsPipelineComponentAttribute.SupportsBackPressure 属性

定义

识别该组件支持多个输入,并在输入产生数据速率不均时实现处理过多内存占用的可选方法。

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

属性值

如果组件支持多个输入,并且实现了处理输入输出速率不均时过度内存占用的可选方法,则为真;否则,就是假的。

示例

在以下示例中,类DtsPipelineComponentAttribute的实现将属性true的值SupportsBackPressure设置为 。

[DtsPipelineComponent(ComponentType = ComponentType.Transform,  
        DisplayName = "Shuffler",  
        Description = "Shuffle the rows from input.",  
        SupportsBackPressure = true,  
        LocalizationType = typeof(Localized),  
        IconResource = "Microsoft.Samples.SqlServer.Dts.MIBPComponent.ico")  
]  
public class Shuffler : Microsoft.SqlServer.Dts.Pipeline.PipelineComponent  
        {  
          ...  
        }  

注解

实现支持多输入的自定义数据流组件更好内存管理的第一步是将属性的值SupportsBackPressure设置为 。trueT:Microsoft.SqlServer.Dts.Pipeline.DtsPipelineComponentAttribute 当值 SupportsBackPressuretrue时,数据流引擎调用 Microsoft.SqlServer.Dts.Pipeline.PipelineComponent.IsInputReady 方法,当输入超过两个时, Microsoft.SqlServer.Dts.Pipeline.PipelineComponent.GetDependentInputs 在运行时调用方法。

关于当自定义 data flow 组件的输入产生数据速率不均时,如何处理过多内存使用的更多信息,请参见《Developing 数据流 Components with Multiple Inputs》。

适用于