语言

PipelineBuffer.GetString(Int32) 方法

定义

获取存储在缓冲区列中的字符串。

public:
 System::String ^ GetString(int columnIndex);
public string GetString(int columnIndex);
member this.GetString : int -> string
Public Function GetString (columnIndex As Integer) As String

参数

columnIndex
Int32

缓冲区行中该列的索引。

返回

存储在缓冲区列中的字符串。

注解

该方法适用于以下集成服务数据类型:

如果分配给缓冲区列的值不是字符串,或者缓冲区列DataType不是 DT_STR、 、 DT_TEXTDT_WSTRDT_NTEXT,则会发生 。UnsupportedBufferDataTypeException

如果列的值为空,则 PipelineBuffer 产生一个 ColumnIsNullException。 你可以通过调用方法 IsNull 来检查 null。

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

适用于