PipelineBuffer.GetColumnInfo 方法
Retrieves the BufferColumn structure for a PipelineBuffer column.
此 API 不符合 CLS。
命名空间: Microsoft.SqlServer.Dts.Pipeline
程序集: Microsoft.SqlServer.PipelineHost(在 Microsoft.SqlServer.PipelineHost.dll 中)
语法
声明
<CLSCompliantAttribute(False)> _
Public Function GetColumnInfo ( _
columnIndex As Integer _
) As BufferColumn
用法
Dim instance As PipelineBuffer
Dim columnIndex As Integer
Dim returnValue As BufferColumn
returnValue = instance.GetColumnInfo(columnIndex)
[CLSCompliantAttribute(false)]
public BufferColumn GetColumnInfo(
int columnIndex
)
[CLSCompliantAttribute(false)]
public:
BufferColumn GetColumnInfo(
int columnIndex
)
[<CLSCompliantAttribute(false)>]
member GetColumnInfo :
columnIndex:int -> BufferColumn
public function GetColumnInfo(
columnIndex : int
) : BufferColumn
参数
- columnIndex
类型:System.Int32
The index of the column whose BufferColumn structure is retrieved.
返回值
类型:Microsoft.SqlServer.Dts.Pipeline.BufferColumn
The BufferColumn structure of the specified PipelineBuffer column.
注释
The BufferColumn contains information about the data stored in a PipelineBuffer column. This information can be used to prevent exceptions that might occur when assigning data to the buffer column. For example, columns with a fixed length such as the DT_STR, DT_TEXT, DT_WSTR, and DT_BYTES data types will fail if the data length is greater than the MaxLength of the BufferColumn.