DtsPipelineComponentAttribute.SupportsBackPressure 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將元件識別為支援一個以上輸入的元件,並在輸入以不平均的速率產生資料時,實作選擇性方法來處理過度的記憶體使用量。
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
屬性值
如果元件支援一個以上的輸入,並在輸入以不平均的速率產生資料時,執行選擇性的方法來處理過度的記憶體使用量,則為 true;否則為 false。
範例
在下列範例中,類別的實 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 中將 T:Microsoft.SqlServer.Dts.Pipeline.DtsPipelineComponentAttribute 屬性的值設定為 true。 當的值 SupportsBackPressure 為時 true ,資料流程引擎就會呼叫 Microsoft.SqlServer.Dts.Pipeline.PipelineComponent.IsInputReady 方法,而且當有兩個以上的輸入時, Microsoft.SqlServer.Dts.Pipeline.PipelineComponent.GetDependentInputs 方法會在執行時間執行。
如需處理過多記憶體使用量的詳細資訊,如果自訂資料流程元件的輸入以不平均的速率產生資料,請參閱 使用多個輸入開發資料流程元件。