Metoda PipelineBuffer.GetInt16
Pobiera krótki w PipelineBuffer kolumna.
Przestrzeń nazw: Microsoft.SqlServer.Dts.Pipeline
Zestaw: Microsoft.SqlServer.PipelineHost (w Microsoft.SqlServer.PipelineHost.dll)
Składnia
'Deklaracja
Public Function GetInt16 ( _
columnIndex As Integer _
) As Short
'Użycie
Dim instance As PipelineBuffer
Dim columnIndex As Integer
Dim returnValue As Short
returnValue = instance.GetInt16(columnIndex)
public short GetInt16(
int columnIndex
)
public:
short GetInt16(
int columnIndex
)
member GetInt16 :
columnIndex:int -> int16
public function GetInt16(
columnIndex : int
) : short
Parametry
- columnIndex
Typ: System.Int32
Indeks kolumna w PipelineBuffer wiersza.
Wartość zwracana
Typ: System.Int16
Krótki w PipelineBuffer kolumna.
Uwagi
Metoda ta działa z DT_I2 Typ danych w Integration Services.
Jeśli wartość kolumna jest null, PipelineBuffer daje ColumnIsNullException.Można sprawdzić, czy wartość null, wywołując IsNull metoda.
Pełną listę Integration Services typów danych i odpowiadających im uzyskać i ustawić metody PipelineBuffer klasy za pomocą każdego typu, zobacz Praca z typami danych w przepływu danych.