IDataRecord.GetDataTypeName(Int32) 方法

定义

获取指定字段的数据类型信息。Gets the data type information for the specified field.

public:
 System::String ^ GetDataTypeName(int i);
public string GetDataTypeName (int i);
abstract member GetDataTypeName : int -> string
Public Function GetDataTypeName (i As Integer) As String

参数

i
Int32

要查找的字段的索引。The index of the field to find.

返回

指定字段的数据类型信息。The data type information for the specified field.

异常

传递的索引位于 0 至 FieldCount 的范围之外。The index passed was outside the range of 0 through FieldCount.

注解

数据类型信息可能不同于返回GetFieldType的类型信息, 尤其是基础数据类型不会将一个映射到该语言支持的运行时类型。The data type information can differ from the type information returned by GetFieldType, especially where the underlying data types do not map one for one to the runtime types supported by the language. (例如, DataTypeName可能是 "integer", 而Type.Name可能是 "Int32"。)(for example, DataTypeName may be "integer", while Type.Name may be "Int32".)

适用于