語言

IDataRecord.GetDataTypeName(Int32) 方法

定義

取得指定欄位的資料型別資訊。

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」。)

適用於