Udostępnij za pośrednictwem


Metoda PipelineBuffer.GetSingle

Pobiera pływaka, przechowywane w PipelineBuffer kolumna.

Przestrzeń nazw:  Microsoft.SqlServer.Dts.Pipeline
Zestaw:  Microsoft.SqlServer.PipelineHost (w Microsoft.SqlServer.PipelineHost.dll)

Składnia

'Deklaracja
Public Function GetSingle ( _
    columnIndex As Integer _
) As Single
'Użycie
Dim instance As PipelineBuffer
Dim columnIndex As Integer
Dim returnValue As Single

returnValue = instance.GetSingle(columnIndex)
public float GetSingle(
    int columnIndex
)
public:
float GetSingle(
    int columnIndex
)
member GetSingle : 
        columnIndex:int -> float32 
public function GetSingle(
    columnIndex : int
) : float

Parametry

  • columnIndex
    Typ: System.Int32
    Indeks kolumna w wierszu bufora.

Wartość zwracana

Typ: System.Single
Pływak zawartych w PipelineBuffer kolumna.

Uwagi

Metoda ta działa z DT_R4 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 przed wprowadzeniem dostęp do danych kolumna.

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.