DB2® DataReader.GetFieldType 方法
获取对象的数据类型 Type。
- 名称空间:
IBM.Data.DB2
- 组合件:
IBM.Data.DB2
(在IBM.Data.DB2.dll
中)
语法
[Visual Basic]
Public Function GetFieldType( _
ByVal i As Integer _
) As Type
[C#]
public Type GetFieldType(
int i
);
[C++]
public: Type* GetFieldType(
int i
);
[JScript]
public function GetFieldType(
i : int
) : Type;
参数
- i
- 从零开始的列序号。
返回值
对象的数据类型 Type。
异常
异常类型 | 条件 |
---|---|
DB2Exception | 无效的转换。 |