Metoda PipelineBuffer.SetDate
Przypisuje DateTime wartość PipelineBuffer kolumna.
Przestrzeń nazw: Microsoft.SqlServer.Dts.Pipeline
Zestaw: Microsoft.SqlServer.PipelineHost (w Microsoft.SqlServer.PipelineHost.dll)
Składnia
'Deklaracja
Public Sub SetDate ( _
columnIndex As Integer, _
value As DateTime _
)
'Użycie
Dim instance As PipelineBuffer
Dim columnIndex As Integer
Dim value As DateTime
instance.SetDate(columnIndex, value)
public void SetDate(
int columnIndex,
DateTime value
)
public:
void SetDate(
int columnIndex,
DateTime value
)
member SetDate :
columnIndex:int *
value:DateTime -> unit
public function SetDate(
columnIndex : int,
value : DateTime
)
Parametry
- columnIndex
Typ: System.Int32
Indeks kolumna w PipelineBuffer wiersza.
- value
Typ: System.DateTime
Wartość przypisana do kolumna buforu.
Uwagi
SetDate Metoda przypisuje DateTime wartość kolumna buforu określony przez columnIndex parametru.
Metoda ta działa z DT_DBDATE Typ danych w Integration Services.
Jeśli DataType buforu kolumna nie jest DT_DBDATE, UnsupportedBufferDataTypeException występuje.
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.