IDataReader.GetFieldType(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得對應於從 返回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範圍。 |