IObjectListFieldCollection.IndexOf 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳欄位的索引。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱
多載
| 名稱 | Description |
|---|---|
| IndexOf(String) |
回傳欄位的索引。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 |
| IndexOf(ObjectListField) |
回傳欄位的索引。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 |
IndexOf(String)
回傳欄位的索引。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱
public:
int IndexOf(System::String ^ fieldIDOrTitle);
public int IndexOf(string fieldIDOrTitle);
abstract member IndexOf : string -> int
Public Function IndexOf (fieldIDOrTitle As String) As Integer
參數
- fieldIDOrTitle
- String
一個用來與或Title性質比較DataField的字串。
傳回
指定欄位的索引。
備註
在此方法的第二版中,它搜尋具有該 Title 性質 fieldId 的欄位,並回傳第一個匹配的欄位。 若未找到匹配,則搜尋具有 DataField 該屬性 fieldID 參數的欄位,並回傳第一個匹配欄位。 否則會傳回 -1。
另請參閱
適用於
IndexOf(ObjectListField)
回傳欄位的索引。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱
public:
int IndexOf(System::Web::UI::MobileControls::ObjectListField ^ field);
public int IndexOf(System.Web.UI.MobileControls.ObjectListField field);
abstract member IndexOf : System.Web.UI.MobileControls.ObjectListField -> int
Public Function IndexOf (field As ObjectListField) As Integer
參數
- field
- ObjectListField
在指定集合中搜尋的欄位。
傳回
指定欄位的索引。
備註
在此方法的第一個版本中,會回傳指定欄位的索引。 若指定欄位不在集合中,則回傳 -1。