Udostępnij za pośrednictwem


Metoda PipelineBuffer.GetDate

Pobiera DateTime wartość przechowywaną w PipelineBuffer kolumna.

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

Składnia

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

returnValue = instance.GetDate(columnIndex)
public DateTime GetDate(
    int columnIndex
)
public:
DateTime GetDate(
    int columnIndex
)
member GetDate : 
        columnIndex:int -> DateTime 
public function GetDate(
    columnIndex : int
) : DateTime

Parametry

Wartość zwracana

Typ: System.DateTime
DateTime wartość przechowywaną w PipelineBuffer kolumna.

Uwagi

Metoda ta działa z DT_DBDATE Typ danych w Integration Services.

Jeśli wartość kolumna jest null, PipelineBuffer generuje 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.