IDataRecord.GetName(Int32) 方法

定義

取得要尋找的欄位名稱。

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

參數

i
Int32

要尋找的欄位索引。

傳回

欄位名稱,或者如果沒有傳回值,則為空字串 ("")。

例外狀況

傳遞的索引超出 0 到 FieldCount 的範圍。

適用於