PipelineBuffer.SetEndOfRowset Yöntemi
Bildirir PipelineBuffer , bir bileşen için satır ekleme bitirdiarabellek.
Ad Alanı: Microsoft.SqlServer.Dts.Pipeline
Derleme: Microsoft.SqlServer.PipelineHost (Microsoft.SqlServer.PipelineHost içinde.dll)
Sözdizimi
'Bildirim
Public Sub SetEndOfRowset
'Kullanım
Dim instance As PipelineBuffer
instance.SetEndOfRowset()
public void SetEndOfRowset()
public:
void SetEndOfRowset()
member SetEndOfRowset : unit -> unit
public function SetEndOfRowset()
Açıklamalar
Data flow components call this method when they have finished adding rows to an OutputPipelineBuffer.Arayan SetEndOfRowset bir bileşen satırları ekleme bitirdi veri akışı altyapısı bildirir PipelineBuffer.SetEndOfRowset yöntem sonra değerini ayarlar EndOfRowsetözellik için doğru son arabellek üzerinde.
PipelineBuffer Üreten bir NotOutputBufferException , Mode , PipelineBuffer olan Input ve bu yöntem çağrılır.
Örnekler
Çağıran bir kaynak bileşeni aşağıdaki örnekte gösterildiği SetEndOfRowset sinyal verdiğini satırlar ekledikten sonra PipelineBuffer.
using System;
using Microsoft.SqlServer.Dts.Pipeline;
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
using Microsoft.SqlServer.Dts.Runtime.Wrapper;
namespace Microsoft.Samples.SqlServer.Dts
{
[DtsPipelineComponent(DisplayName = "SampleComponent")]
public class SampleSourceComponent: PipelineComponent
{
public override void ProvideComponentProperties()
{
IDTSOutput100 output = ComponentMetaData.OutputCollection.New();
output.Name = "SourceOutput";
IDTSOutputColumn100 column = output.OutputColumnCollection.New();
column.Name = "Column1";
column.SetDataTypeProperties(DataType.DT_R8, 0, 0, 0, 0);
}
public override void PrimeOutput(int outputs, int[] outputIDs, PipelineBuffer[] buffers)
{
double d = 123.5;
buffers[0].AddRow();
buffers[0].SetDouble(0, d);
buffers[0].SetEndOfRowset();
}
}
}
Imports System
Imports Microsoft.SqlServer.Dts.Pipeline
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper
Imports Microsoft.SqlServer.Dts.Runtime.Wrapper
Namespace Microsoft.Samples.SqlServer.Dts
<DtsPipelineComponent(DisplayName="SampleComponent")> _
Public Class SampleSourceComponent
Inherits PipelineComponent
Public Overrides Sub ProvideComponentProperties()
Dim output As IDTSOutput100 = ComponentMetaData.OutputCollection.New
output.Name = "SourceOutput"
Dim column As IDTSOutputColumn100 = output.OutputColumnCollection.New
column.Name = "Column1"
column.SetDataTypeProperties(DataType.DT_R8, 0, 0, 0, 0)
End Sub
Public Overrides Sub PrimeOutput(ByVal outputs As Integer, ByVal outputIDs As Integer(), ByVal buffers As PipelineBuffer())
Dim d As Double = 123.5
buffers(0).AddRow
buffers(0).SetDouble(0, d)
buffers(0).SetEndOfRowset
End Sub
End Class
End Namespace