Udostępnij przez


IDTSBuffer100.Clone Method

Creates a private copy of an IDTSBuffer100 object.

Namespace: Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly: Microsoft.SqlServer.DTSPipelineWrap (in microsoft.sqlserver.dtspipelinewrap.dll)

Syntax

'Deklaracja
Function Clone ( _
    <InAttribute> pOwner As IDTSComponentMetaData100 _
) As IDTSBuffer100
IDTSBuffer100 Clone (
    [InAttribute] IDTSComponentMetaData100 pOwner
)
IDTSBuffer100^ Clone (
    [InAttribute] IDTSComponentMetaData100^ pOwner
)
IDTSBuffer100 Clone (
    /** @attribute InAttribute() */ IDTSComponentMetaData100 pOwner
)
function Clone (
    pOwner : IDTSComponentMetaData100
) : IDTSBuffer100

Parameters

Return Value

An IDTSBuffer100 object that is a copy of the original buffer.

Remarks

This method creates a private copy of the calling IDTSBuffer100 object that contains all of the columns and rows of the original. The newly created buffer is private to the component that calls the Clone method, which means that the buffer is not managed or monitored by the IDTSBufferManager100. The IDTSBuffer100 must be locked, and cannot be an output buffer, which is a buffer provided to a component in the PrimeOutput method. If the buffer is an output buffer, a DTS_E_BUFFERISNOTPRIMEOUTPUT exception occurs. If the buffer is not locked, a DTS_E_BUFFERNOTLOCKED exception occurs.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.