共用方式為


GetDataByRef 方法

(Feature deprecated, see Remarks.) Gets a pointer to the data stored in a column in an IDTSBuffer100.

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

語法

'宣告
Function GetDataByRef ( _
    hRow As Integer, _
    hCol As Integer _
) As DTP_VARIANT
'用途
Dim instance As IDTSBuffer100
Dim hRow As Integer
Dim hCol As Integer
Dim returnValue As DTP_VARIANT

returnValue = instance.GetDataByRef(hRow, _
    hCol)
DTP_VARIANT GetDataByRef(
    int hRow,
    int hCol
)
DTP_VARIANT GetDataByRef(
    [InAttribute] int hRow, 
    [InAttribute] int hCol
)
abstract GetDataByRef : 
        hRow:int * 
        hCol:int -> DTP_VARIANT 
function GetDataByRef(
    hRow : int, 
    hCol : int
) : DTP_VARIANT

參數

傳回值

型別:Microsoft.SqlServer.Dts.Runtime.Wrapper. . :: . .DTP_VARIANT

[!附註]

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

The DTP_VARIANT that contains the data in the column.

備註

This method returns a pointer to the data stored in the column specified by the hCol parameter. This pointer is used to directly modify the data in the column specified by hCol instead of calling the GetData method, modifying the data, and then calling SetData.