共用方式為


ScriptBuffer Constructor

Initializes a new instance of the ScriptBuffer class.

命名空間: Microsoft.SqlServer.Dts.Pipeline
組件: Microsoft.SqlServer.TxScript (in microsoft.sqlserver.txscript.dll)

語法

'宣告
Public Sub New ( _
    BufferToUse As PipelineBuffer, _
    BufferColumnIndexesToUse As Integer() _
)
public ScriptBuffer (
    PipelineBuffer BufferToUse,
    int[] BufferColumnIndexesToUse
)
public:
ScriptBuffer (
    PipelineBuffer^ BufferToUse, 
    array<int>^ BufferColumnIndexesToUse
)
public ScriptBuffer (
    PipelineBuffer BufferToUse, 
    int[] BufferColumnIndexesToUse
)
public function ScriptBuffer (
    BufferToUse : PipelineBuffer, 
    BufferColumnIndexesToUse : int[]
)

參數

  • BufferColumnIndexesToUse
    An array of type Integer containing the column indexes for the columns in the buffer.

備註

The Script component developer does not use the ScriptBuffer class directly, but indirectly, through the derived classes in the BufferWrapper project item that represent the component's input and outputs.

The developer does not have to use the constructor for the ScriptBuffer class.

範例

The following sample code from the autogenerated BufferWrapper project item demonstrates how the Script component uses the constructor for the classes that inherit from ScriptBuffer.

    Public Sub New(ByVal Buffer As PipelineBuffer, ByVal BufferColumnIndexes As Integer())
        MyBase.New(Buffer, BufferColumnIndexes)
    End Sub

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

ScriptBuffer Class
ScriptBuffer Members
Microsoft.SqlServer.Dts.Pipeline Namespace