Metoda PipelineBuffer.GetUInt16
Pobiera ushort wartości przechowywane kolumna buforu.
Ten interfejs API nie jest zgodny ze specyfikacją CLS.
Przestrzeń nazw: Microsoft.SqlServer.Dts.Pipeline
Zestaw: Microsoft.SqlServer.PipelineHost (w Microsoft.SqlServer.PipelineHost.dll)
Składnia
'Deklaracja
<CLSCompliantAttribute(False)> _
Public Function GetUInt16 ( _
columnIndex As Integer _
) As UShort
'Użycie
Dim instance As PipelineBuffer
Dim columnIndex As Integer
Dim returnValue As UShort
returnValue = instance.GetUInt16(columnIndex)
[CLSCompliantAttribute(false)]
public ushort GetUInt16(
int columnIndex
)
[CLSCompliantAttribute(false)]
public:
unsigned short GetUInt16(
int columnIndex
)
[<CLSCompliantAttribute(false)>]
member GetUInt16 :
columnIndex:int -> uint16
public function GetUInt16(
columnIndex : int
) : ushort
Parametry
- columnIndex
Typ: System.Int32
Indeks kolumna w wierszu bufora.
Wartość zwracana
Typ: System.UInt16
Ushort przechowywane kolumna buforu.
Uwagi
Metoda ta działa z DT_UI2 Typ danych w Integration Services.
Jeśli kolumna buforu DataType nie jest DT_UI2, PipelineBuffer daje UnsupportedBufferDataTypeException.
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.