共用方式為


PipelineBuffer.EndOfRowset 屬性

Gets a value indicating whether the current PipelineBuffer is the final buffer.

命名空間:  Microsoft.SqlServer.Dts.Pipeline
組件:  Microsoft.SqlServer.PipelineHost (在 Microsoft.SqlServer.PipelineHost.dll 中)

語法

'宣告
Public ReadOnly Property EndOfRowset As Boolean 
    Get
'用途
Dim instance As PipelineBuffer 
Dim value As Boolean 

value = instance.EndOfRowset
public bool EndOfRowset { get; }
public:
property bool EndOfRowset {
    bool get ();
}
member EndOfRowset : bool
function get EndOfRowset () : boolean

屬性值

型別:System.Boolean
true if the current PipelineBuffer is the final buffer from the upstream component; otherwise, false.

備註

The EndOfRowset property indicates that the current PipelineBuffer is the final buffer.

Often, you can safely ignore the value of the EndOfRowset property. Many components do not have to take any additional actions after they read the last row of data. However, when you use the EndOfRowset property, make sure that you determine its value after you read the rows in the current buffer. If you stop reading rows as soon as the EndOfRowset property is true, you might lose the rows of data that the final buffer contains.

The correct pattern for using the NextRow method and the EndOfRowset property is:

while (buffer.NextRow())

{

// Do something with each row.

}

if (buffer.EndOfRowset)

{

// Optionally, do something after all rows have been processed.

}

請參閱

參考

PipelineBuffer 類別

Microsoft.SqlServer.Dts.Pipeline 命名空間