IDTSOutput100.Buffer 屬性

定義

public:
 property int Buffer { int get(); };
[System.Runtime.InteropServices.ComAliasName("Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.DTP_HBUFFERTYPE")]
[System.Runtime.InteropServices.DispId(103)]
public int Buffer { [System.Runtime.InteropServices.DispId(103)] get; }
[<System.Runtime.InteropServices.ComAliasName("Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.DTP_HBUFFERTYPE")>]
[<System.Runtime.InteropServices.DispId(103)>]
[<get: System.Runtime.InteropServices.DispId(103)>]
member this.Buffer : int
Public ReadOnly Property Buffer As Integer

屬性值

指派給物件PipelineBufferIDTSOutput100整數 ID。

屬性

範例

以下程式碼範例利用 在緩衝區 FindColumnByLineageID中定位輸出欄位。 欄位的索引儲存在內部成員陣列中,因此可透過 PrimeOutput 方法或方法 ProcessInput 存取。

Private columnIndex As Integer()   

Public  Overrides Sub PreExecute()   
 Dim output As IDTSOutput100 = ComponentMetaData.OutputCollection(0)   
 columnIndex = New Integer(output.OutputColumnCollection.Count - 1) {}   
 Dim x As Integer = 0   
 While x < output.OutputColumnCollection.Count   
   Dim col As IDTSOutputColumn100 = output.OutputColumnCollection(x)   
   columnIndex(x) = BufferManager.FindColumnByLineageID(output.Buffer, col.LineageID)   
   x -= 1   
 End While   
End Sub  
int []columnIndex;  
public override void PreExecute()  
{  
    IDTSOutput100 output = ComponentMetaData.OutputCollection[0];  

    columnIndex = new int[output.OutputColumnCollection.Count];  

    for(int x=0; x< output.OutputColumnCollection.Count; x++)  
    {  
        IDTSOutputColumn100 col = output.OutputColumnCollection[x];  
        columnIndex[x] = BufferManager.FindColumnByLineageID( output.Buffer,col.LineageID);  
    }  
}  

備註

此執行時特性主要用作該屬性方法FindColumnByLineageID的參數,用BufferManager以定位欄位。PipelineBuffer

適用於