IDataRecord.GetDataTypeName(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定欄位的資料型別資訊。
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
尋找該領域的索引。
傳回
指定欄位的資料型別資訊。
例外狀況
通過的指數超出0到 FieldCount範圍。
備註
資料型別資訊可能與由 GetFieldType回傳的型別資訊不同,特別是當底層資料型別未一對應語言支援的執行時型態時。 (例如, DataTypeName 可以是「整數」,而 Type.Name 可能是「Int32」。)