Bagikan melalui


IDTSOutput100.Buffer Properti

Definisi

Mendapatkan ID dari objek yang PipelineBufferIDTSOutput100 dialokasikan.

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

Nilai Properti

ID bilangan bulat dari yang PipelineBuffer ditetapkan ke IDTSOutput100 objek.

Atribut

Contoh

Contoh kode berikut menemukan kolom output dalam buffer menggunakan FindColumnByLineageID. Indeks kolom disimpan dalam array anggota internal sehingga dapat diakses menggunakan PrimeOutput metode atau ProcessInput metode .

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);  
    }  
}  
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  

Keterangan

Properti run-time ini terutama digunakan sebagai parameter untuk FindColumnByLineageID metode BufferManager properti untuk menemukan kolom dalam PipelineBuffer.

Berlaku untuk