语言

PipelineBuffer.GetBytes(Int32) 方法

定义

重要

此 API 不符合 CLS。

获取存储在缓冲区列中的字节数组。

public:
 cli::array <System::Byte> ^ GetBytes(int columnIndex);
[System.CLSCompliant(false)]
public byte[] GetBytes(int columnIndex);
[<System.CLSCompliant(false)>]
member this.GetBytes : int -> byte[]
Public Function GetBytes (columnIndex As Integer) As Byte()

参数

columnIndex
Int32

列的索引。

返回

Byte[]

缓冲区列中存储的字节数组。

属性

注解

GetBytes 方法从缓冲区列检索字节数组。

该方法适用于集成服务中的数据 DT_BYTES 类型。

如果值列为空,则 PipelineBuffer 生成 ColumnIsNullException。 通过调用该 IsNull 方法检查空值。

有关集成服务数据类型的完整列表以及该类中用于各类型的对应GetSet方法PipelineBuffer,请参见“在数据流中与数据类型工作”。

适用于