Share via


GetTime メソッド

PipelineBuffer 列に格納されている TimeSpan 値を取得します。

名前空間:  Microsoft.SqlServer.Dts.Pipeline
アセンブリ:  Microsoft.SqlServer.PipelineHost (Microsoft.SqlServer.PipelineHost.dll)

構文

'宣言
Public Function GetTime ( _
    columnIndex As Integer _
) As TimeSpan
'使用
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

パラメーター

戻り値

型: System. . :: . .TimeSpan
PipelineBuffer 列に格納されている TimeSpan 値。

説明

このメソッドは、次の Integration Services データ型に有効です。

GetTime メソッドは、DT_DBTIME データ型および DT_DBTIME2 データ型の列の TimeSpan 値を取得します。

列の値が null の場合、PipelineBufferColumnIsNullException をスローします。null かどうかは、IsNull メソッドを呼び出して確認できます。

Integration Services のデータ型と、それぞれのデータ型に対して使用する、PipelineBuffer クラスの対応する Get メソッドおよび Set メソッドの一覧については、「データ フロー内のデータ型の処理」を参照してください。