Metoda PipelineBuffer.GetTime
Pobiera TimeSpan 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 GetTime ( _
columnIndex As Integer _
) As TimeSpan
'Użycie
Dim instance As PipelineBuffer
Dim columnIndex As Integer
Dim returnValue As TimeSpan
returnValue = instance.GetTime(columnIndex)
public TimeSpan GetTime(
int columnIndex
)
public:
TimeSpan GetTime(
int columnIndex
)
member GetTime :
columnIndex:int -> TimeSpan
public function GetTime(
columnIndex : int
) : TimeSpan
Parametry
- columnIndex
Typ: System.Int32
Indeks kolumna w PipelineBuffer wiersza.
Wartość zwracana
Typ: System.TimeSpan
TimeSpan wartość przechowywaną w PipelineBuffer kolumna.
Uwagi
Metoda ta działa z następującymi Integration Services typy danych:
GetTime Metoda pobiera TimeSpan wartości dla kolumn o typach danych, DT_DBTIME i DT_DBTIME2.
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.