語言

IDataReader.GetFieldType(Int32) 方法

定義

取得對應於從 返回GetValue(Int32)的物件類型所對應的類型資訊。

public:
 Type ^ GetFieldType(int fieldIndex);
public Type GetFieldType(int fieldIndex);
abstract member GetFieldType : int -> Type
Public Function GetFieldType (fieldIndex As Integer) As Type

參數

fieldIndex
Int32

尋找該領域的索引。

傳回

對應物件類型GetValue(Int32),從 返回的 類型資訊。

備註

Exceptions

例外狀況類型 狀況
IndexOutOfRangeException 通過的指數超出0到 FieldCount範圍。

適用於