Share via


PipelineBuffer.GetUInt16(Int32) Method

Definition

Important

This API is not CLS-compliant.

Gets the ushort value stored in the buffer column.

public:
 System::UInt16 GetUInt16(int columnIndex);
[System.CLSCompliant(false)]
public ushort GetUInt16 (int columnIndex);
[<System.CLSCompliant(false)>]
member this.GetUInt16 : int -> uint16
Public Function GetUInt16 (columnIndex As Integer) As UShort

Parameters

columnIndex
Int32

The index of the column in the buffer row.

Returns

The ushort stored in the buffer column.

Attributes

Remarks

This method works with the DT_UI2 data type in Integration Services.

If the buffer column DataType is not DT_UI2, the PipelineBuffer produces an UnsupportedBufferDataTypeException.

If the value of the column is null, the PipelineBuffer produces a ColumnIsNullException. You can check for null by calling the IsNull method.

For a complete list of Integration Services data types and the corresponding Get and Set methods of the PipelineBuffer class to use with each type, see Working with Data Types in the Data Flow.

Applies to