語言

IDataReader.GetName(Int32) 方法

定義

取得要找到的欄位名稱。

public:
 System::String ^ GetName(int fieldIndex);
public string GetName(int fieldIndex);
abstract member GetName : int -> string
Public Function GetName (fieldIndex As Integer) As String

參數

fieldIndex
Int32

尋找該領域的索引。

傳回

欄位名稱,或若無可回傳值則為空字串(“”)。

備註

Exceptions

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

適用於