語言

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 類別的實作將屬性的值 SupportsBackPressure 設為 true。

[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。 當 值 SupportsBackPressure 為 true時,資料流程引擎 Microsoft.SqlServer.Dts.Pipeline.PipelineComponent.IsInputReady 呼叫該方法,當輸入超過兩個時, Microsoft.SqlServer.Dts.Pipeline.PipelineComponent.GetDependentInputs 執行時呼叫該方法。

若自訂 data flow 元件的輸入產生資料速率不均,如何處理過度記憶體使用,請參見「Developing Data Flow Components with Multiple Inputs」。

適用於