GetFieldType メソッド

指定した列の位置にあるフィールド型のデータ値を返します。

名前空間:  Microsoft.SqlServer.Management.Trace
アセンブリ:  Microsoft.SqlServer.ConnectionInfoExtended (Microsoft.SqlServer.ConnectionInfoExtended.dll)

構文

'宣言
Public Function GetFieldType ( _
    ordinal As Integer _
) As Type
'使用
Dim instance As TraceReader
Dim ordinal As Integer
Dim returnValue As Type

returnValue = instance.GetFieldType(ordinal)
public Type GetFieldType(
    int ordinal
)
public:
virtual Type^ GetFieldType(
    int ordinal
) sealed
abstract GetFieldType : 
        ordinal:int -> Type 
override GetFieldType : 
        ordinal:int -> Type 
public final function GetFieldType(
    ordinal : int
) : Type

パラメーター

戻り値

型: System. . :: . .Type
データ値のフィールド型を示す Type システム オブジェクトの値。

実装

IDataRecord. . :: . .GetFieldType(Int32)

説明

戻り値は、GetValue メソッドから返される Object 値の型に対応します。

使用例

Readme_Tracer