Edit

Share via


IDataRecord.GetDataTypeName(Int32) Method

Definition

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

Parameters

i
Int32

The index of the field to find.

Returns

The data type information for the specified field.

Exceptions

The index passed was outside the range of 0 through FieldCount.

Remarks

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. (for example, DataTypeName may be "integer", while Type.Name may be "Int32".)

Applies to